No internet connection
  1. Home
  2. How to

Open Recent Session

By Tom Mochiach @Tom_Mochiach
    2025-01-30 18:36:19.270Z

    Anyone?
    I can't find a macro to open a recent session

    • 18 replies
    1. Kitch Membery @Kitch2025-01-30 18:41:47.278Z

      Hi @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?

      1. T
        In reply toTom_Mochiach:
        Tom Mochiach @Tom_Mochiach
          2025-01-30 19:04:07.048Z

          both will be great

          1. Kitch Membery @Kitch2025-01-30 19:38:03.806Z

            Hi @Tom_Mochiach,

            Was there one particular implementation that you were after when posting this thread, as the two workflows are vastly different?

            1. In reply toTom_Mochiach:
              Kitch Membery @Kitch2025-01-30 19:43:24.233Z

              One 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. :-)

              1. TTom Mochiach @Tom_Mochiach
                  2025-01-30 20:05:28.246Z

                  Just trying to view recent sessions and pick from them that would be great

                  1. Kitch Membery @Kitch2025-01-30 20:18:23.717Z

                    Awesome, I just made a walkthrough video. I will post it shortly. :-)

              2. In reply toTom_Mochiach:
                Kitch Membery @Kitch2025-01-30 20:41:44.717Z

                Hi @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. :-)

                1. T
                  In reply toTom_Mochiach:
                  Tom Mochiach @Tom_Mochiach
                    2025-01-30 21:04:41.429Z

                    thank you so much
                    when I run the command I get this-

                    1. Kitch Membery @Kitch2025-01-30 21:38:49.525Z

                      Ah yes, if you don't have a session open you may need to change the first line to

                      sf.ui.proTools.appActivate();
                      
                      1. TTom Mochiach @Tom_Mochiach
                          2025-01-30 21:46:29.042Z

                          Thank you I’ll try it, however did tried it with an open session and it didn’t do anything…

                          1. Kitch Membery @Kitch2025-01-30 22:00:08.810Z

                            Let 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.

                            1. TTom Mochiach @Tom_Mochiach
                                2025-01-30 22:01:46.587Z

                                Pro tools 2024.10.1

                                1. Kitch Membery @Kitch2025-01-30 22:05:34.461Z

                                  Hi @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.

                                  1. TTom Mochiach @Tom_Mochiach
                                      2025-01-30 22:09:23.558Z

                                      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

                                      1. Kitch Membery @Kitch2025-01-30 22:15:39.418Z

                                        Thanks 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
                                        1. In reply toTom_Mochiach:
                                          Kitch Membery @Kitch2025-01-30 22:20:47.266Z

                                          Are 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.626Z

                                Changing sf.ui.proTools.appActivateMainWindow(); to sf.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], });
                                
                                1. TTom Mochiach @Tom_Mochiach
                                    2025-01-30 22:26:37.791Z

                                    Right On!!!