View Single Post
  #264  
Old 12-13-2019, 02:07 PM
Oliver M Oliver M is offline
Member
 
Join Date: Dec 1969
Location: Europe
Posts: 1,108
Default Re: Automation AppleScripts for Pro Tools (Mac)

You're welcome. 😉

Quote:
Originally Posted by oudi View Post
hi

i've read all thread but ...
but i've find with ui browser...a must have...
thank you for the link.


and thank you for your help

best

jf
script for show only track from a group

Code:
set cliclickCLIPath to "usr/local/bin/cliclick"
property cliclickCLIPath : missing value

activate application "Pro Tools"
tell application "System Events"
     tell application process "Pro Tools"


         tell UI element 2 of row 2 of table 2 of window 1--ROW 1=ALL AND NEXT FUNCTION OF YOUR SESSION


             set {xPosition, yPosition} to position
            set {xSize, ySize} to size
             my cliClick("rc:" & xPosition + (xSize div 2) & "," & yPosition + (ySize div 2))


--ACTION FOR SELECT SHOW ONLY TRACK FROM GROUP


             repeat 7 times
                key code "125"
            end repeat
            key code 36
            
            
            
        end tell
    end tell
    
    
end tell


on cliClick(coordinate)
    do shell script quoted form of cliclickCLIPath & " -r " & coordinate
end cliClick
Reply With Quote