View Single Post
  #287  
Old 08-30-2021, 01:14 AM
Oliver M Oliver M is offline
Member
 
Join Date: Dec 1969
Location: Europe
Posts: 1,108
Default Re: Automation AppleScripts for Pro Tools (Mac)

Quote:
Originally Posted by its2loud View Post
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.

Hi,


it is probably the shortcut you are using, I used FastScripts and assigned F19 to the script, it works fine. Have you tried anything else but cmd+F16? Also check if you have assigned the shortcut to anything else already, like Automator, Keyboard Maestro, whatever.
Reply With Quote