View Single Post
  #286  
Old 08-29-2021, 09:11 AM
its2loud its2loud is offline
Member
 
Join Date: Dec 2014
Location: Los Angeles
Posts: 2,351
Default Re: Automation AppleScripts for Pro Tools (Mac)

I need some AppleScript love from the community.

I'm use this and similar scripts to execute Audio Suite plugins.

tell application "System Events"
tell process "Pro Tools"
set frontmost to true
if exists (window "Audio Suite: iZotope RX De-click") then
click UI element "render" of window "Audio Suite: RX 8 De-click"
else
click menu item "RX 8 De-click" of menu of menu item "Noise Reduction" of menu "AudioSuite" of menu bar 1
click UI element "render" of window "Audio Suite: RX 8 De-click"
end if
end tell
end tell


The script runs perfectly when I execute it in Automator. The problem is when I assign a shortcut key to execute the command. So say I implement (Command+F16) to execute. What ends up happening is the script will run but the RENDER button will be "clicked" three times. I can't figure this out for the life of me.

I'm running OS 11.4
PT 2021.7
Mac Mini M1

I appreciate any help. I'm pulling what's left of my hair out.
Reply With Quote