Sending to Aux script in Logic Pro 11
Title
Sending to Aux script in Logic Pro 11
What do you expect to happen when you run the script/macro?
trying to send to an auxiliary as part of a larger script. I'm going through converting scripts that used to work in Logic 10.8.1
Are you seeing an error?
03.07.2024 14:42:13.81 [Backend]: !! Command Error: send to aux [user:cl08t4prq0002ck10oyye4ruy:cly5vklji0001zv10r8ku1mz4]: No menu item was returned by menuSelector callback (send to aux: Line 14)
What happens when you run this script?
nothing
How were you running this script?
I used a keyboard shortcut within the target app
How important is this issue to you?
5
Details
{ "inputExpected": "trying to send to an auxiliary as part of a larger script. I'm going through converting scripts that used to work in Logic 10.8.1", "inputIsError": true, "inputError": "03.07.2024 14:42:13.81 [Backend]: !! Command Error: send to aux [user:cl08t4prq0002ck10oyye4ruy:cly5vklji0001zv10r8ku1mz4]:\nNo menu item was returned by menuSelector callback (send to aux: Line 14)", "inputWhatHappens": "nothing", "inputHowRun": { "key": "-Mpfwh4RkPLb2LPwjePT", "title": "I used a keyboard shortcut within the target app" }, "inputImportance": 5, "inputTitle": "Sending to Aux script in Logic Pro 11" }
Source
sendToAux('Bus 194 (print instrument)');
function sendToAux(outputPath) {
var logic = sf.ui.logic;
const inspector = logic.mainWindow.groups.whoseDescription.is('Inspector').first;
logic.appActivateMainWindow();
let mixer = inspector.children.whoseRole.is("AXList").first.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];
mixer.children.whoseRole.is("AXLayoutItem").first.buttons.whoseDescription.is("send button").first.elementWaitFor();
mixer.children.whoseRole.is("AXLayoutItem").first.buttons.whoseDescription.is("send button").first.popupMenuSelect({
menuSelector: item => item.filter(i => i.path.slice(-1).join().split(' → ')[0] === outputPath)[0],
});
}
Links
User UID: Kf7km0JU15Q6NnRTk6HrX1PmHaw1
Feedback Key: sffeedback:Kf7km0JU15Q6NnRTk6HrX1PmHaw1:-O0spS9upxRPeyvuQHfp
Feedback ZIP: GfjwFJYqTYfczUHtCafxPy2fbsflMGsfq1WxWlWuKE1r2p0V02E40tZftlGw0oV4z0roxBrhXa0lh7s4n2x9xNN9CBBN54DBuWRDEOKjCg2OB8Kjtuvse5MKVpWlPoLU/uv+Lhuf01Bgn6TD1xsi5yywnMO77xdpf+oDl4Ucv2cJzvVOY3colBu5UFGt9jtxeBSW4gSdUOeQ3vp8+TkKtOAjPXy3e+K9R7cCPWeFdyQKffJNdbyLnyWjt2QUWmWVg/86vJnj9sxHfVaHC02dujWmnSyh6A1WqspMFDPjjBYsvFrPWVT8JZeFeSEPXmAVp3LjYqd92LeM2Ku1CM0DiReg6xpHBgMpe/qvjr73ZdI=