View Single Post
  #91  
Old 03-15-2016, 05:54 AM
Marco Bernardo's Avatar
Marco Bernardo Marco Bernardo is offline
Member
 
Join Date: Jan 2007
Location: Lisboa, Portugal
Posts: 787
Default Re: Automation AppleScripts for Pro Tools (Mac)

Quote:
Originally Posted by Oliver M View Post
How about this:

Code:
tell application "System Events"
	tell process "Pro Tools"
		set editWindow to (1st window whose title contains "Edit: ")
		set editWindowName to value of attribute "AXTitle" of editWindow
		set sessionName to text 7 thru -1 of editWindowName
		display dialog sessionName
	end tell
end tell
;-)

AHAHAHAHAHAHAHAHHAHAHAHAHAHA you're the best!!

24 lines in 7

AHAHAHHAHAHAH You WIN Flawless victory!!
__________________
Marco Bernardo

Dialog Editor, Sound Designer, Re-Recording mixer

nMacPro 6Core/D500/512GB/64Gb ram | PT HD 12 HDN Thunderbolt | HD OMNI | Avid Artist Mix | Novation Impulse 25 | Waves Mercury Native | Audioease All In Bundle | SoundToys | McDSP Classic Pack | DUY Overpack | Arturia Beatstep Pro
Reply With Quote