Pick Up Path of Folder for Macro - Pro Tools

I have never used Pro Tools, but according to this post it is not scriptable with AppleScript. If that is true, then it means you would have to resort to GUI scripting.

In this respect @irep has given you a good hint with the topic he has found, in particular this post:

To see if it works for you, do this:

  1. In Pro Tools open a project so that it has an open window.
  2. Make sure the project window is frontmost in Pro Tools.
  3. Paste the AppleScript below to a new document in Script Editor (/Applications/Utilities/Script Editor.app).
  4. In the script replace the <process name> with the Pro Tools process name.
  • To find the process name, open /Applications/Utilities/Activity Monitor.app, and look for the exact process name in the list.
  1. Run the script and see what it returns.
tell application "System Events"
  tell application process "<process name>"
    tell window 1
      get value of attribute "AXDocument"
    end tell
  end tell
end tell