No internet connection
  1. Home
  2. How to

I'd like a script which reveals the selected clip on Pro Tools timeline, in the Finder.

By Jeremiah Moore @Jeremiah_Moore
    2025-09-10 00:36:35.991Z

    I'd like a script which reveals the selected clip on Pro Tools timeline, in the Finder.

    there are several scripts in the system which fail; I found none currently working. (as of Sept 9, 2025).

    The next step for me would be to script the equivalent of dropping that file on Soundminer icon, then linking these in a "From PT Timeline Selection, open source of clip in SM"

    Obviously PT can have multiple clips selected on the timeline; I'd propose to simply have the first clip, OR the first clip that is highlighted in the clip/region bin; this would be enough.

    -jeremiah

    • 8 replies
    1. @Owen_Granich_Young,
      do you have something up your sleeve for this?

      1. No but you made me futz around...

        Try this? ... HOLY SHIT!

        let filepath= sf.app.proTools.getFileLocation().fileLocations[0].path
        log(filepath)
        
        sf.file.open({
            applicationPath : '/Applications/Soundminer v6.app',
            path : filepath
        })
        
      2. J
        In reply toJeremiah_Moore:
        Jeremiah Moore @Jeremiah_Moore
          2025-09-10 02:32:00.925Z

          Tested it... and THIS IS WORKING HERE!

          On a couple of files it did not work, but I think it's because those files are not in my soundminer database. Bit further testing needed to be sure it's recalling SM settings as it should; but amazing!

          Would be nice to have a more general-purpose variant which did a reveal-in-finder...

          1. Should be able to adapt this code to just reveal in finder

            1. OOwen Granich-Young @Owen_Granich_Young
                2025-09-10 16:20:22.717Z2025-09-10 17:26:21.781Z
                let filepath= sf.app.proTools.getFileLocation().fileLocations[0].path
                sf.system.exec({    commandLine: `open -R "${filepath}"`});
                

                SDK reveal in finder... pretty nice not to have to deal with any right click mouse simulation!

                1. JJeremiah Moore @Jeremiah_Moore
                    2025-09-10 19:21:06.210Z

                    Just pasted this in as a new script command, and it's working! GREAT!

              • J
                In reply toJeremiah_Moore:
                Jeremiah Moore @Jeremiah_Moore
                  2025-09-10 02:56:29.749Z

                  yeah, I think there needs to be some error trapping for when the sound does not exist in soundminer... not sure how SF would know, but in cases where the file DOES exist in SM, it appears... and in cases where it does NOT exist, Soundflow throws a log window... but when I look at the log I see nothing interesting, just that the script was called and the filepath of the selected clip...

                  1. In reply toJeremiah_Moore:
                    Matt Friedman @Matt_Friedman
                      2025-09-10 23:52:17.446Z

                      As per the original request, this script will find all selected clips in the timeline and/or clip list, and reveal them in the finder.

                      It will even reveal them if spread across across multiple finder windows.