A pop up window interrupts a macro
A pop up window interrupts a macro
System Information
SoundFlow 5.1.5
OS: darwin 21.5.0
ProductName: macOS
ProductVersion: 12.4
BuildVersion: 21F79
Steps to Reproduce
I have a small macro to batch process some regions in protools. There are three "PROCESS AUDIOSUITE PLUGINS" in succession. They all have "ClipbyClip" as their inputMode. The first has "Create Individual Files" as the outputMode, while the second and third have "Overwrite File" as the output mode (just so I don't have files I don't need in my Audio Files folder). Obviously when I launch the macro at the second operation a pop-up appears telling me "You CANNOT undo a destructive change .... bla bla bla" .. I can't find a way to automate the click on "Continue" and continue with the Macro .. Kitch tried to help me but we haven't found a solution yet.
Expected Result
Actual Result
a pop-up appears telling me "You can NOT undo a destructive edit .... bla bla bla"
Workaround
//Calling command "AudioSuite (control)" from package "undefined" (installed from user/pkg/version "8Lk9YFZW3EbJKb7iO7F1FvsCcus2/ck8kanx4d000l7910huzgn7ff/ckuqr8oj40002eb10qany35ie")
sf.soundflow.runCommand({
commandId: 'user:cl41p6h2s00034410pca4z6tq:ckev85aht000ews10fin6svso',
props: {
audioSuitePlugin: "EQ3 7-Band",
category: "EQ",
presetMenuPath: ["EQ3_FULLIMPACT_CROWD"],
multiInputMode: "Mono",
handleLenght: "5",
saveKeeping: "None",
action: "Render",
pluginWindow: "CloseAfterRender",
colorClip: "Red",
}
});
//Calling command "AudioSuite (control)" from package "undefined" (installed from user/pkg/version "8Lk9YFZW3EbJKb7iO7F1FvsCcus2/ck8kanx4d000l7910huzgn7ff/ckuqr8oj40002eb10qany35ie")
sf.soundflow.runCommand({
commandId: 'user:cl41p6h2s00034410pca4z6tq:ckev85aht000ews10fin6svso',
props: {
audioSuitePlugin: "MV2 Mono",
category: "Dynamics",
presetMenuPath: ["MV2_FULLIMPACT_CROWD"],
processingoutputMode: "OverwriteFiles",
multiInputMode: "Mono",
handleLenght: "5",
saveKeeping: "None",
action: "Render",
pluginWindow: "CloseAfterRender",
colorClip: "Orange",
}
});
//Calling command "AudioSuite (control)" from package "undefined" (installed from user/pkg/version "8Lk9YFZW3EbJKb7iO7F1FvsCcus2/ck8kanx4d000l7910huzgn7ff/ckuqr8oj40002eb10qany35ie")
sf.soundflow.runCommand({
commandId: 'user:cl41p6h2s00034410pca4z6tq:ckev85aht000ews10fin6svso',
props: {
audioSuitePlugin: "Scheps Omni Channel",
category: "Dynamics",
presetMenuPath: ["SCHEPS_FULLIMPACT_CROWD"],
processingoutputMode: "OverwriteFiles",
multiInputMode: "Mono",
handleLenght: "5",
saveKeeping: "None",
action: "Render",
pluginWindow: "CloseAfterRender",
colorClip: "Green",
}
});
Other Notes
Links
User UID: KrYW0iwNU1b7sFQU1hmzk5sFmRP2
Feedback Key: sffeedback:KrYW0iwNU1b7sFQU1hmzk5sFmRP2:-N3tXmCqxVePGBTroEqo
Kitch Membery @Kitch2022-06-06 16:54:09.857ZHi @Davide_Docente,
I provided a solution in my last posts (Post 7) on the previous thread... Did that new solution not work for you? here is a link to the post;
Let me know.
In reply toD_av_3⬆:Dav3 @D_av_3Hi Kitch
Unfortunately the script stops on that pop up window
Kitch Membery @Kitch2022-06-06 17:12:29.685Z@Davide_Docente Are you sure that you are using this new script?
function dismissDialog(dialogText, buttonName) { const dlg = sf.ui.proTools.confirmationDialog; //Wait 100ms for dialog box to appear dlg.elementWaitFor({ timeout: 100, pollingInterval: 10, onError: 'Continue' }); if (dlg.children.whoseRole.is("AXStaticText").whoseValue.startsWith(dialogText).first.exists) { dlg.buttons.whoseTitle.is(buttonName).first.elementClick(); dlg.elementWaitFor({ waitType: 'Disappear', timeout: 100, pollingInterval: 10, onError: 'Continue' }); } } function audioSuiteProcessDestructive(props) { const { pluginCategory, pluginName, processingInputMode, processingOutputMode, presetMenuPath, } = props; const asWin = sf.ui.proTools.audioSuiteOpenPlugin({ category: pluginCategory, name: pluginName, }).window asWin.audioSuiteSetOptions({ processingInputMode: processingInputMode, processingOutputMode: processingOutputMode, }); asWin.audioSuiteSelectPreset({ presetMenuPath: presetMenuPath }); asWin.renderButton.elementClick(); dismissDialog("You can NOT undo a destructive edit.", "Continue"); sf.ui.proTools.waitForNoModals(); } function main() { //Activate Pro Tools main window sf.ui.proTools.appActivateMainWindow(); //EQ sf.ui.proTools.audioSuiteProcess({ pluginCategory: "EQ", pluginName: "EQ3 7-Band", processingInputMode: "ClipByClip", processingOutputMode: "CreateIndividualFiles", presetMenuPath: ["EQ3_FULLIMPACT_CROWD"], }); //MV2 sf.ui.proTools.audioSuiteProcess({ pluginCategory: "Dynamics", pluginName: "MV2", processingInputMode: "ClipByClip", processingOutputMode: "OverwriteFiles", presetMenuPath: ["MV2_FULL IMPACT_CROWD"], pollingInterval: 195, }); //Inflator sf.ui.proTools.audioSuiteProcess({ pluginCategory: "Harmonic", pluginName: "Scheps Omni Channel", processingInputMode: "ClipByClip", processingOutputMode: "OverwriteFiles", presetMenuPath: ["SCHEPS_FULL_IMPACT_CROWD"], }); } main();If this still does not work let me know and I'll look into it further. :-)
In reply toD_av_3⬆:Dav3 @D_av_3Yes Man..
i just created a new empty script..and i pasted this last code .... to be sure ... but it just stops before rendering the second audiosuite plugin