Thursday, December 14, 2017

#1 2002-02-21 10:39:14 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

window question

I'm needing to script the QuickTime player under OS X and am new to AppleScript. How do I tell the QuickTime player to bring a specific, already-open window to the front? Because the movies are already open, I can reference them by name.
Thanks


One mans trash is another mans treasure

Offline

 

#2 2002-02-22 04:58:39 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: window question

: I'm needing to script the QuickTime player under OS X and am new
: to AppleScript. How do I tell the QuickTime player to bring a
: specific, already-open window to the front? Because the movies
: are already open, I can reference them by name.
: Thanks
I don't know X but this works in classic...

Applescript:

set x to (choose from list (get name of windows of application "QuickTime Player")) as string
if result is false then return
tell application "QuickTime Player"
activate
select window named x
end tell


One mans trash is another mans treasure


Filed under: QuickTime

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)