Re: Automation AppleScripts for Pro Tools (Mac)
Hello to all,
I am face to a problem with a script I am using on Protools 2020.3 that works perfectly but for a reason does not work with Protools 2018.3.
The script is made to open the output window of the selected track. It goes as follows :
tell application "System Events"
if exists (process "Pro Tools") then
tell process "Pro Tools"
tell (1st window whose title contains "Edit: ")
set selectedTrack to title of button of UI element 2 of (1st row of table "Track List" whose selected is true)
set formattedString to text of selectedTrack as string
set AppleScript's text item delimiters to "Selected. "
set theTextItems to every text item of formattedString
set AppleScript's text item delimiters to ""
set formattedString to theTextItems as string
click button "Output Window button" of group "Audio IO" of group formattedString
end tell
end tell
end if
end tell
On the machine with Protools 2018.3, it does not work and I have this message :
Error Number: -1728
System Events got an error: Can’t get group "Selected Audio 2 audio track" of window 1 of process "Pro Tools" whose title contains "Edit: ".
Anyone could help?
Many thanks in advance,
Simon
|