Opening plugin from insert bar in mixer
By Alex Oldroyd @Alex_Oldroyd8
Title
Opening plugin from insert bar in mixer
What do you expect to happen when you run the script/macro?
The script should open a channel eq plugin in the mixer window *before* all other plugins in chain from the "insert bar"
The popup menu displays, but soundflow doesn't seem to see it.
Thanks
Are you seeing an error?
28.06.2022 11:47:41.27 [Backend]: !! Command Error: Insert bar in mixer [user:cl16mc9zf000c6k10yb2ekw9m:cl4y1oblw0000h41089uwb7im]: Popup menu was not found (Insert bar in mixer: Line 14) Popup window was not found after waiting 2000 ms
What happens when you run this script?
Popup window opens but nothing further then i get the error
How were you running this script?
I used a keyboard shortcut within the target app
How important is this issue to you?
3
Details
{
"inputExpected": "The script should open a channel eq plugin in the mixer window *before* all other plugins in chain from the \"insert bar\"\n\nThe popup menu displays, but soundflow doesn't seem to see it.\n\nThanks",
"inputIsError": true,
"inputError": "28.06.2022 11:47:41.27 [Backend]: !! Command Error: Insert bar in mixer [user:cl16mc9zf000c6k10yb2ekw9m:cl4y1oblw0000h41089uwb7im]:\nPopup menu was not found (Insert bar in mixer: Line 14)\n Popup window was not found after waiting 2000 ms",
"inputWhatHappens": "Popup window opens but nothing further then i get the error",
"inputHowRun": {
"key": "-Mpfwh4RkPLb2LPwjePT",
"title": "I used a keyboard shortcut within the target app"
},
"inputImportance": 3,
"inputTitle": "Opening plugin from insert bar in mixer"
}
Source
function addPlugin(pluginPath) {
const logic = sf.ui.app('com.apple.logic10');
const trackName = sf.ui.app("com.apple.logic10").mainWindow.groups.whoseDescription.is("Inspector").first.children.whoseRole.is("AXList").first.groups.allItems[2].textFields.first.value.invalidate().value;
logic.appActivateMainWindow();
//Set the Output Path
let mixer = logic.mainWindow.groups
.filter(g => g.children.whoseRole.is("AXLayoutArea").whoseDescription.is('Mixer').first.exists)
.map(g => g.children.whoseRole.is("AXLayoutArea").whoseDescription.is('Mixer').first)[0];
const insertBar = mixer.children.whoseRole.is("AXLayoutItem").whoseDescription.is(trackName).first.buttons.whoseDescription.is("insert bar").first;
const popupMenu = insertBar.popupMenuOpenFromElement().popupMenu;
popupMenu.popupMenuSelect({
menuSelector: item => item.filter(i => i.path[1] === pluginPath)[0],
});
}
addPlugin("Channel EQ");
Links
User UID: Kf7km0JU15Q6NnRTk6HrX1PmHaw1
Feedback Key: sffeedback:Kf7km0JU15Q6NnRTk6HrX1PmHaw1:-N5dw50RFVVzV4b3A6dU