Open Recent Session
Anyone?
I can't find a macro to open a recent session
Kitch Membery @Kitch2025-01-30 18:41:47.278ZHi @Tom_Mochiach,
Could you provide more details about how you envision this workflow functioning?
For instance, you run the command and it presents you with a list of the most recent sessions in the "File" menu's "Open Recent" subfolder. Or do you need to open a recent session prior to launching pro tools?
- T
Kitch Membery @Kitch2025-01-30 19:38:03.806ZHi @Tom_Mochiach,
Was there one particular implementation that you were after when posting this thread, as the two workflows are vastly different?
- In reply toTom_Mochiach⬆:
Kitch Membery @Kitch2025-01-30 19:43:24.233ZOne small side note: when responding to replies in forum threads, be sure to reply using the reply button connected to the response. That way, the person you are responding to will be notified. :-)
- TTom Mochiach @Tom_Mochiach
Just trying to view recent sessions and pick from them that would be great
Kitch Membery @Kitch2025-01-30 20:18:23.717ZAwesome, I just made a walkthrough video. I will post it shortly. :-)
In reply toTom_Mochiach⬆:Kitch Membery @Kitch2025-01-30 20:41:44.717ZHi @Tom_Mochiach,
Here's a video walking through how to display a popup search to show all the recent songs in the Pro Tools "File" menu, ready for user selection.
The final script looks like this.
sf.ui.proTools.appActivateMainWindow(); const recentProjectNames = sf.ui.proTools.getMenuItem("File", "Open Recent").children.first.children.slice(0, -2).map(mi => mi.title.value); const targetProjectName = sf.interaction.popupSearch({ items: recentProjectNames.map(projectName => ({ name: projectName, })), }).item.name; sf.ui.proTools.menuClick({ menuPath: ["File", "Open Recent", targetProjectName], });I hope that helps. :-)
- TIn reply toTom_Mochiach⬆:Tom Mochiach @Tom_Mochiach
thank you so much
when I run the command I get this-
Kitch Membery @Kitch2025-01-30 21:38:49.525ZAh yes, if you don't have a session open you may need to change the first line to
sf.ui.proTools.appActivate();- TTom Mochiach @Tom_Mochiach
Thank you I’ll try it, however did tried it with an open session and it didn’t do anything…
Kitch Membery @Kitch2025-01-30 22:00:08.810ZLet me know if it fails again.
By chance have you updated Pro Tools recently... There is a chance that SoundFlow may be looking for the previous version. The best way to rule that out would be to quit both SoundFlow and Pro Tools and then reopen them.
- TTom Mochiach @Tom_Mochiach
Pro tools 2024.10.1
Kitch Membery @Kitch2025-01-30 22:05:34.461ZHi @Tom_Mochiach,
I'm not sure what you mean by this reply.
Did you try running the script again? Did it fail again?
If you recently updated Pro Tools, please follow the steps in my previous reply to ensure that SoundFlow is seeing the correct install of Pro Tools.
Thanks in advance.
- TTom Mochiach @Tom_Mochiach
I replied for your question "By chance have you updated Pro Tools recently... "
but I was not clear enuff , I apologize . I meant to say that I use this version of pro tools. I did not updated since I tried the script , which is actually today. I did try the script many times , also after quiting both softwares
Kitch Membery @Kitch2025-01-30 22:15:39.418ZThanks for clarifying, Tom.
How are you running the script?
- From the "Run Command" button in the editor
- Via a keyboard trigger/shortcut
- From a button on a stream deck
- Some other way
- In reply toTom_Mochiach⬆:
Kitch Membery @Kitch2025-01-30 22:20:47.266ZAre you by chance using a language other than English for your Pro Tools language?
Currently, SoundFlow only supports Pro Tools when it's set to "English" language.
See here.
https://soundflow.org/docs/getting-started/install-soundflow/known-issues#pro-tools-language
- In reply toTom_Mochiach⬆:
Chad Wahlbrink @Chad2025-01-30 22:24:46.626ZChanging
sf.ui.proTools.appActivateMainWindow();tosf.ui.proTools.appActivate();seems to make this work well for me.@Tom_Mochiach, can you try copying the script as follows to see if it works with that line swapped for you?
sf.ui.proTools.appActivate(); const recentProjectNames = sf.ui.proTools.getMenuItem("File", "Open Recent").children.first.children.slice(0, -2).map(mi => mi.title.value); const targetProjectName = sf.interaction.popupSearch({ items: recentProjectNames.map(projectName => ({ name: projectName, })), }).item.name; sf.ui.proTools.menuClick({ menuPath: ["File", "Open Recent", targetProjectName], });- TTom Mochiach @Tom_Mochiach
Right On!!!