No internet connection
  1. Home
  2. Packages
  3. Pro Tools Session Management

Navigate to Folder (or parent folder) of Protools Session In Save/Open Dialog no longer working

By Ian Bodzasi @Ian_Bodzasi
    2022-09-08 15:55:06.336Z

    Title

    Navigate to Folder (or parent folder) of Protools Session In Save/Open Dialog no longer working

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

    It should navigate to the folder of the Protools session within Save/Open dialog boxes

    Are you seeing an error?

    06.09.2022 14:43:24.75 [Backend]: !! Command Error: Navigate to Parent Folder of Pro Tools session in Save/Open dialog [user:ckyelpxbm0001hw107kl87zvb:cjm26dmtt0005v0102ssggxhl]: Couldn't locate AxElementArrayIndexedItem (Navigate to Parent Folder of Pro Tools session in Save/Open dialog: Line 17)

    << Command: Navigate to Parent Folder of Pro Tools session in Save/Open dialog [user:ckyelpxbm0001hw107kl87zvb:cjm26dmtt0005v0102ssggxhl]

    What happens when you run this script?

    It also happens with the Navigate to Parent Folder of Protools Session in Save/Open Dialog commands.

    Instead, the error pops up, and I'll see a new dialog box for folder navigation.

    This has only started since updating my machine to Mac OS 12.5.1/Protools 2022.7. I have a copy of my previous boot drive (Big Sur/PT 2021), and the commands still work fine there.

    How were you running this script?

    I used a Stream Deck button

    How important is this issue to you?

    5

    Details

    {
        "inputExpected": "It should navigate to the folder of the Protools session within Save/Open dialog boxes",
        "inputIsError": true,
        "inputError": "06.09.2022 14:43:24.75  [Backend]: !! Command Error: Navigate to Parent Folder of Pro Tools session in Save/Open dialog [user:ckyelpxbm0001hw107kl87zvb:cjm26dmtt0005v0102ssggxhl]:\nCouldn't locate AxElementArrayIndexedItem (Navigate to Parent Folder of Pro Tools session in Save/Open dialog: Line 17)\n\n<< Command: Navigate to Parent Folder of Pro Tools session in Save/Open dialog [user:ckyelpxbm0001hw107kl87zvb:cjm26dmtt0005v0102ssggxhl]\n\n",
        "inputWhatHappens": "It also happens with the Navigate to Parent Folder of Protools Session in Save/Open Dialog commands.  \n\nInstead, the error pops up, and I'll see a new dialog box for folder navigation.\n\nThis has only started since updating my machine to Mac OS 12.5.1/Protools 2022.7.  I have a copy of my previous boot drive (Big Sur/PT 2021), and the commands still work fine there.",
        "inputHowRun": {
            "key": "-MpfwmPg-2Sb-HxHQAff",
            "title": "I used a Stream Deck button"
        },
        "inputImportance": 5,
        "inputTitle": "Navigate to Folder (or parent folder) of Protools Session In Save/Open Dialog no longer working"
    }

    Source

    
    function navigateTo(path) {
        //Get a reference to the focused window in the frontmost app:
        var win = sf.ui.frontmostApp.focusedWindow;
    
        //Sanity check - make sure window is either Save or Open dialog
        if (!(win.title.value.indexOf('Save') >= 0 || win.title.value.indexOf('Open') >= 0))
            throw 'Focused window is not an Open or Save dialog. Title: ' + win.title.value;
    
        //Open the Go to... sheet
        sf.keyboard.type({ text: '/' });
    
        //Wait for the sheet to appear
        var sheet = win.sheets.first.elementWaitFor({ timeout: 500 }, 'Could not find "Go to" sheet in the Save/Open dialog').element;
    
        //Set the value of the combo box
        sheet.comboBoxes.first.value.value = path;    
    
        //Press OK
        sheet.buttons.whoseTitle.is('Go').first.elementClick({}, 'Could not click "Go"');
    
        //Wait for sheet to close
        win.sheets.first.elementWaitFor({ waitForNoElement: true, timeout: 500 }, '"Go to" sheet didn\'t close in time');
    }
    
    var folderPath = sf.ui.proTools.mainWindow.sessionPath.split('/').slice(0, -1).join('/');
    navigateTo(folderPath);
    
    

    Links

    User UID: bFjAgiBx9vf9EF9QDxr5s2xSx3E3

    Feedback Key: sffeedback:bFjAgiBx9vf9EF9QDxr5s2xSx3E3:-NBSny-WRH0FLrma6bo8

    Feedback ZIP

    Solved in post #15, click to view
    • 21 replies

    There are 21 replies. Estimated reading time: 5 minutes

    1. S
      SoundFlow Bot @soundflowbot
        2022-09-08 15:55:08.112Z

        Thanks for posting a question or an issue related to the 'Pro Tools Session Management' package.
        This package is made by @chrscheuer. We're auto-tagging them here so that they will hopefully be able to help you.

        1. In reply toIan_Bodzasi:
          Ian Bodzasi @Ian_Bodzasi
            2022-09-08 15:57:21.008Z

            Also, this pops up and stays on screen

            1. Hi Ian,

              Does this also happen if you use the command in the official Pro Tools package under "Files & Navigation"?

              We should probably deprecate the Pro Tools Session Management package in favor of those official implementations now.

              1. Ian Bodzasi @Ian_Bodzasi
                  2022-09-08 18:12:46.258Z

                  Thanks Christian. Yup, same thing happens here using that one.

                  1. Do you have "Screens have separate spaces" turned on in macOS settings?

                    I'm also wondering if this have to do with the naming of your boot drive and/or the file path it's trying to navigate to. Trying to see if I can repro here.

                    1. Nevermind, I can repro it here :)

                      1. AAndrew Vernon @Andrew_Vernon
                          2022-10-18 00:27:32.920Z

                          is there a fix for this one? I upgraded my os to Monterey from Mojave, and this broke

                          Thanks!

                          1. Not yet – we'll update this thread when there's a fix available :)

                            1. AAndrew Vernon @Andrew_Vernon
                                2022-10-18 01:21:32.187Z

                                Thanks, I use this constantly!

                                1. I nudged it up on the list (it was already up there). The team is just super busy (we're at AES this week), but we should get to it soon :)

                                  1. Brenden @nednednerb
                                      2022-10-19 05:46:45.959Z

                                      I was JUST trying to figure out this Goto Folder action. At least I know I might be doing it right after all!!!

                    2. S
                      In reply toIan_Bodzasi:
                      SoundFlow Bot @soundflowbot
                        2022-09-08 18:18:17.934Z

                        This issue is now tracked internally by SoundFlow as SF-658

                        1. G
                          In reply toIan_Bodzasi:
                          Graham Archer @Graham_Archer
                            2022-11-11 13:23:50.176Z

                            Hey @chrscheuer I hope you're well. I just wondered if this had been fixed yet? It's such a useful command!

                            Please let me know when you have a moment.

                            Thanks!

                            Graham

                            1. In reply toIan_Bodzasi:

                              This should be fixed in the 1.0.19 version of the official "Pro Tools" package (note, not the "Pro Tools Session Management" package which is deprecated).
                              It'll come out asap.

                              ReplySolution
                              1. Ian Bodzasi @Ian_Bodzasi
                                  2022-11-28 16:42:06.659Z

                                  Thanks Christian! Will that also fix the ones to open the session folder/parent folder of session in the finder?

                                  1. I hope - if it doesn't, please let us know

                                    1. Ian Bodzasi @Ian_Bodzasi
                                        2022-11-28 17:15:47.421Z

                                        Awesome, thanks!

                                        1. Ian Bodzasi @Ian_Bodzasi
                                            2023-01-09 17:11:31.193Z

                                            Hi Christian! Thanks so much this. I'm still having the same issue with the new Navigate To Top Most Finder Window In Save Open Dialog.

                                            Also curious about the similar one that had been in the Protools Session Management package, Navigate To Parent Folder Of Protools Session in Save/Open Dialog if it's possible to get that one running again as well. Both were really handy when exporting or importing files to get directly the to PT session folder, or it's parent.

                                            Much thanks!

                                            1. Hi Ian,

                                              If this still doesn't work, could I get you to open a new bug using the red Need help button? Feel free to tag me once you've opened it.

                                              See here for instructions (be sure to first use the command so the log contains any errors):

                                              bit.ly/sfscripthelp

                                              Also, please be sure that you have the latest version of the Pro Tools package (you didn't specify which version you're using).

                                              1. Ian Bodzasi @Ian_Bodzasi
                                                  2023-01-09 18:55:08.301Z

                                                  Will do, thanks Christian!

                                      • S
                                        In reply toIan_Bodzasi:
                                        SoundFlow Bot @soundflowbot
                                          2022-11-21 10:36:21.901Z

                                          This issue has been marked as Done