No internet connection
  1. Home
  2. Macro and Script Help

pick path from popup menu not working

By Alex Oldroyd @Alex_Oldroyd8
    2025-02-12 08:55:34.648Z

    Title

    pick path from popup menu not working

    What do you expect to happen when you run the script/macro?

    trying to pick path from popup menu but the script can't seem to find the ui element

    Are you seeing an error?

    12.02.2025 08:51:37.95 [Backend]: Logging error in action (01) PopupMenuFetchAllItemsAction: Element is required Logging unknown error in action (02) RunCommandAction: Pick Path from Popup Menu: Line 52 !! Command Error: asdflkj [user:clad2w0hi00013e10bl7r3ezg:cm71o7j1z000eof10tpopuujp]: @Error running command user:1642499476722:cknultty100011910wve083r0 (asdflkj: Line 1) Element is required (Pick Path from Popup Menu: Line 52) Couldn't get item #0 as the array's parent node wasn't found - sf.ui.app('com.apple.logic10')..sheets.whoseDescription.is('New Track').first.groups.first.groups[1].popUpButtons (AxElementArrayIndexedItem)

    What happens when you run this script?

    it can't seem to see the ui element for the popup menu that has been assigned

    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 pick path from popup menu but the script can't seem to find the ui element",
        "inputIsError": true,
        "inputError": "12.02.2025 08:51:37.95  [Backend]: Logging error in action (01) PopupMenuFetchAllItemsAction: Element is required\nLogging unknown error in action (02) RunCommandAction: Pick Path from Popup Menu: Line 52\n!! Command Error: asdflkj [user:clad2w0hi00013e10bl7r3ezg:cm71o7j1z000eof10tpopuujp]:\n@Error running command user:1642499476722:cknultty100011910wve083r0 (asdflkj: Line 1)\n    Element is required (Pick Path from Popup Menu: Line 52)\n    Couldn't get item #0 as the array's parent node wasn't found - sf.ui.app('com.apple.logic10')..sheets.whoseDescription.is('New Track').first.groups.first.groups[1].popUpButtons (AxElementArrayIndexedItem)\n",
        "inputWhatHappens": "it can't seem to see the ui element for the popup menu that has been assigned",
        "inputHowRun": {
            "key": "-Mpfwh4RkPLb2LPwjePT",
            "title": "I used a keyboard shortcut within the target app"
        },
        "inputImportance": 5,
        "inputTitle": "pick path from popup menu not working"
    }

    Source

    //Macro converted to script
    
    
    //Calling command "Pick Path from Popup Menu" from package "Pick Path from Menu & Popup Menu" (installed from user/pkg/version "K7sfAMoyAGZQwwIp4xruZTGNFTb2/cknultf970000191007brj6i8/cktpyq11r0002n010nvudlkz3")
    sf.soundflow.runCommand({
        commandId: 'user:1642499476722:cknultty100011910wve083r0',
        props: {
            uiElement: sf.ui.logic.mainWindow.sheets.whoseDescription.is("New Track").first.groups.first.groups.allItems[1].popupButtons.allItems[1],
        }
    });
    
    sf.ui.logic.mainWindow.sheets.whoseDescription.is("New Track").first.groups.first.groups.allItems[1].popupButtons.allItems[1].popupMenuSelect();
    
    
    

    Links

    User UID: Kf7km0JU15Q6NnRTk6HrX1PmHaw1

    Feedback Key: sffeedback:Kf7km0JU15Q6NnRTk6HrX1PmHaw1:-OItMiaYiCpIZz8zH0u_

    Feedback ZIP: C5UXDJD+2Uo51VsPjt/c3DnQHqLaKJ1xMs6iD+mOAfhxL4Z7klErRcOgtrcQ6XWtrZbUqbbSnVqVgRmRJ2Pi6uHTmw8PITiv8897gDIUQfU6Kt1Ok3QcSpK7gML3PYW+G2srcOZbbQkHm91PJz51w2L0JJnH3lmOHARympKgxcBCqb7F/FBIpLaiMvwlWzt8kJcS687JTcr7XvqnAXqcAeAHXia3f3pW9c0l6E9mViskYPolSmD2hrsXCBrN6pgOtLnho+IXEFfP3IR3pKF6i0wxhwQVejz2C3rZurctRGhH+wa2tBT2W0mvD1WcmE08vbWcFGqj60suyc4SSyuq9baRVZShREv3Mg+fTfDyA6o=

    • 2 replies
    1. Kitch Membery @Kitch2025-02-12 18:29:19.904Z

      Hi @Alex_Oldroyd8,

      Can you provide a screenshot of the UI element that you're trying to pick in Logic Pro?

      Thanks in advance! :-)

      1. AAlex Oldroyd @Alex_Oldroyd8
          2025-02-12 18:55:51.990Z

          hi kitch. it's the MIDI Destination: Popup menu. (it says (Rev2) in the screen grab because i'm not connected to the Rev2 at the moment...)