No internet connection
  1. Home
  2. How to

Import Session Data - Select Source and Destination

By Bao Pham @Bao_Pham
    2021-10-14 03:15:36.626Z

    Import Data Session window is already open...

    Under Tracks I want to select specific source tracks, and select the destination as the same name of the source track, which should be the same because I'm using the same template over and over. I want to be able to batch import specific ones.

    To do this I normally go to:

    1. File>Import Session Data...
    2. find the ptx file i want to pull session data from
    3. Go under Tracks and select the Source (in this case All Vox (Stereo aux) and Destination (All Vox)
    4. repeat step 3 for every track i want to import
    5. double check that Tempo / Meter Map and HEAT Master Settings is unchecked under "Session Data"

    Picture below:

    a friend of mine helped me come up with the first part of the script, but couldn't quite get it working. here it is below:

    sf.ui.proTools.windows.whoseTitle.is("Import Session Data").first.groups.whoseTitle.is("Tracks").first.tables.whoseTitle.is("Source Destination").first.children.whoseRole.is("AXRow").whoseValue.is("# 0 row ").allItems[1].children.whoseRole.is("AXCell").first.children.whoseRole.is("AXStaticText").whoseTitle.is("All Vox (Stereo audio)").first.popupMenuSelect({
        menuPath: ["All Vox"],
    });
    
    sf.ui.proTools.windows.whoseTitle.is("Import Session Data").first.groups.whoseTitle.is("Tracks").first.tables.whoseTitle.is("Source Destination").first.children.whoseRole.is("AXRow").whoseValue.is("# 0 row  Row is empty.").allItems[2].children.whoseRole.is("AXCell").first.children.whoseRole.is("AXStaticText").whoseTitle.is("J Vox Comp (Stereo audio)").first.popupMenuSelect({
        menuPath: ["J Vox Comp"],
    });
    
    
    
    
    
    

    Any help would be greatly appreciated!

    • 7 replies
    1. B
      Bao Pham @Bao_Pham
        2021-10-17 11:44:03.215Z

        any help here? No one has responded.

        1. Hi Bao,

          Unfortunately, AFAIK, the "Tracks" part of Import Session Data cannot be automated right now.

          1. BBao Pham @Bao_Pham
              2021-10-18 02:23:43.559Z

              ok got it thanks

              1. In reply tochrscheuer:
                MMartin Messier @Martin_M_Messier
                  2023-09-16 03:22:16.883Z

                  Is that possible now?

                  1. BBao Pham @Bao_Pham
                      2023-09-16 05:21:13.883Z

                      would like to know as well @chrscheuer

                      1. I don't think I'm the right person to ask - I have seen several people on the forum who've been able to successfully script this area but I haven't taken a look myself.

                • In reply toBao_Pham:
                  Mike Wax @mikewax
                    2024-02-27 17:26:14.083Z

                    Hey @Bao_Pham,

                    I've been trying to do the same as well and the problem is Pro Tools' UI doesn't have this as a named list that can be accessed. Each entry is listed as "NULL".
                    So i was able to make something work, but the problem is it's based off index position, and not by name.

                    This means that if the list changes at all, the script always selects the item in the nth space no matter what, not matching by name.
                    I have the same issue trying to automate the Relink window.

                    For now, there's no proper way to be able to automate this from what i've found.