Re: QT Player front document
Re: QT Player front document
- Subject: Re: QT Player front document
- From: Luther Fuller <email@hidden>
- Date: Sun, 13 Apr 2008 13:17:40 -0500
On Apr 12, 2008, at 7:35 PM, Philip Aker wrote:
On 08-04-12, at 17:30, Luther Fuller wrote:
I'm having a problem with
tell application "QuickTime Player" to get front document
This should simply refer to the frontmost document.
But ... on the first use of 'front document' it always refers to
the FIRST OPENED document, which is the rearmost document. Once
that document is closed, 'first document' works correctly for the
remaining documents.
I've also tried 'document 1', 'document index 1', 'document 0' and
'document index 0' with the same result.
Try this:
tell application "QuickTime Player"
document of window 1
end tell
I tried it, and it didn't work, either. Then, I noticed something
interesting ...
All variants of the 'front document' command DO work properly if the
QuickTime Player application is visible. I'm just trying to play some
music while AppleScripting and one of the first lines in my script
hides QuickTime Player. I removed this line and now my script works
properly until I hide QuickTime Player, then it starts playing
documents in reverse order.
I think I'll restore the 'hide' command and live with it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden