View Single Post
  #11  
Old 07-27-2019, 09:45 AM
Oliver M Oliver M is offline
Member
 
Join Date: Dec 1969
Location: Europe
Posts: 1,100
Default Re: Soft Keys/Macros for rendering Audio Suite

Quote:
Originally Posted by Richard901 View Post
I'm not an expert at AppleScript - I use Google to search for websites and posts on forums about how to use AppleScript. I then try to modify the scripts.

Sorry if my screenshots contain your original work. I will delete them if you want.




Great!!! Can you post a screenshot of how to do this?
No screenshot but the code:

Code:
tell application "System Events"
	set frontmost of process "Pro Tools" to true
	tell process "Pro Tools"
		try
			click menu item "Reverse" of menu 1 of menu item "Other" of menu "AudioSuite" of menu bar 1
			repeat until exists (1st window whose name is "Audio Suite: Reverse") -- We wait for the AudioSuite "Reverse" plug-in window to open
				delay 0.1
			end repeat
		on error e number n
			tell application "Pro Tools"
				activate
				display alert e & " (" & n & ")" message "An Error Occurred" buttons ["Cancel"] default button 1
			end tell
		end try
		-- Add any other AppleScript code here...
	end tell
end tell

Last edited by Oliver M; 07-28-2019 at 03:12 AM. Reason: Corrected a typo.
Reply With Quote