Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Pro Tools Software > Tips & Tricks
Register FAQ Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 06-03-2019, 12:39 PM
Oliver M Oliver M is online now
Member
 
Join Date: Dec 1969
Location: Europe
Posts: 1,108
Default Re: Automation AppleScripts for Pro Tools (Mac)

Kevin,

great job! AppleScript being slow here and there is a normal issue, especially with PT. I wouldn't worry too much.

And great to see someone finally contributing to this thread again. 😉


Oliver


Quote:
Originally Posted by Kevin Peters View Post
To improve upon my post above, I looked through the UI elements of the Track List again, and it turns out that the rows (tracks) in the "Track List" table have a parameter called "Selected" that has a true or false value. Using this new information here is my updated script for 2019.5:

Code:
tell application "System Events"
	
	if exists (process "Pro Tools") then
		
		tell process "Pro Tools"
			
			tell (1st window whose title contains "Edit: ")
				
				set selectedTrack to title of button of UI element 2 of (1st row of table "Track List" whose selected is true)
				
				set formattedString to text of selectedTrack as string
				set AppleScript's text item delimiters to "Selected. "
				set theTextItems to every text item of formattedString
				set AppleScript's text item delimiters to ""
				set formattedString to theTextItems as string
				
				click button "Output Window button" of group "Audio IO" of group formattedString
				
			end tell
		end tell
	end if
end tell
This dramatically increases the speed of the script, although there still is a 1/2 second to 1 second delay in really big sessions with hundreds of tracks. That being said in a small session it's a very short delay. I wonder if there is still a way to speed it up. I got rid of the safety check on the button so save a split second.

Using this script you can change it to open any of the visible inserts, sends, and other buttons on the track.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro Tools 12 Trim Automation [email protected] Pro Tools 12 2 08-16-2015 04:25 AM
Pro Tools 11.2.1 Automation Bug?! Gneal550 Pro Tools 11 1 11-22-2014 01:15 PM
GRM tools automation bug? D'Animation Pro Tools TDM Systems (Mac) 6 10-08-2014 08:21 AM
scripting Pro Tools; automation Bermaster 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Mac) 12 10-01-2004 12:38 PM
AppleScripts and other Macros for PT Bergeron Tips & Tricks 1 11-15-1999 06:55 PM


All times are GMT -7. The time now is 02:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com