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
- SSoundFlow Bot @soundflowbot
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. - In reply toIan_Bodzasi⬆:Ian Bodzasi @Ian_Bodzasi
Also, this pops up and stays on screen
Christian Scheuer @chrscheuer2022-09-08 18:05:04.670Z
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.
Ian Bodzasi @Ian_Bodzasi
Thanks Christian. Yup, same thing happens here using that one.
Christian Scheuer @chrscheuer2022-09-08 18:17:12.904Z
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.
Christian Scheuer @chrscheuer2022-09-08 18:18:12.742Z
Nevermind, I can repro it here :)
- AAndrew Vernon @Andrew_Vernon
is there a fix for this one? I upgraded my os to Monterey from Mojave, and this broke
Thanks!
Christian Scheuer @chrscheuer2022-10-18 01:04:51.293Z
Not yet – we'll update this thread when there's a fix available :)
- AAndrew Vernon @Andrew_Vernon
Thanks, I use this constantly!
Christian Scheuer @chrscheuer2022-10-18 01:28:28.433Z
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 :)
Brenden @nednednerb
I was JUST trying to figure out this Goto Folder action. At least I know I might be doing it right after all!!!
- SIn reply toIan_Bodzasi⬆:SoundFlow Bot @soundflowbot
This issue is now tracked internally by SoundFlow as SF-658
- GIn reply toIan_Bodzasi⬆:Graham Archer @Graham_Archer
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
- In reply toIan_Bodzasi⬆:Christian Scheuer @chrscheuer2022-11-21 10:34:55.120Z
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.Ian Bodzasi @Ian_Bodzasi
Thanks Christian! Will that also fix the ones to open the session folder/parent folder of session in the finder?
Christian Scheuer @chrscheuer2022-11-28 16:57:07.838Z
I hope - if it doesn't, please let us know
Ian Bodzasi @Ian_Bodzasi
Awesome, thanks!
Ian Bodzasi @Ian_Bodzasi
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!
Christian Scheuer @chrscheuer2023-01-09 18:52:19.946Z
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):
Also, please be sure that you have the latest version of the Pro Tools package (you didn't specify which version you're using).
Ian Bodzasi @Ian_Bodzasi
Will do, thanks Christian!
- SIn reply toIan_Bodzasi⬆:SoundFlow Bot @soundflowbot
This issue has been marked as Done