View Single Post
  #259  
Old 12-10-2019, 01:05 AM
oudi oudi is offline
Member
 
Join Date: Jun 2007
Posts: 14
Default Re: Automation AppleScripts for Pro Tools (Mac)

Hi

thank for the Good reply
i've solve the problem


Code:
property cliclickCLIPath : missing value

set cliclickCLIPath to "usr/local/bin/cliclick"

activate application "Pro Tools"
tell application "System Events"
    tell application process "Pro Tools"
        
        set window_name to name of front window
        -- key code for copy paste
        keystroke "c" using command down
        keystroke "m"
        keystroke "v" using command down
        -- click pop up button for track P1 
        tell pop up button 1 of group "temoin - Audio Track " of window window_name
            -- type e for select expand channels and by criteria 
            set {xPosition, yPosition} to position
            set {xSize, ySize} to size
            my cliClick("rc:" & xPosition + (xSize div 2) & "," & yPosition + (ySize div 2))
            
            
            
            
            key code 14
            key code 124
            key code 36
            
            
        end tell
    end tell
    
    
    
end tell

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



By the way how can we access to the Group id...


and for the pop menu of right click what is the way to select menu directly.
like hide for example on the right click of track.


Thank you Oliver.


best
Reply With Quote