• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QT Player front document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QT Player front document


  • Subject: Re: QT Player front document
  • From: Philip Aker <email@hidden>
  • Date: Sat, 12 Apr 2008 17:35:46 -0700

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

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

 _______________________________________________
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

  • Follow-Ups:
    • Re: QT Player front document
      • From: Luther Fuller <email@hidden>
References: 
 >QT Player front document (From: Luther Fuller <email@hidden>)

  • Prev by Date: QT Player front document
  • Next by Date: Re: finder authenticate
  • Previous by thread: QT Player front document
  • Next by thread: Re: QT Player front document
  • Index(es):
    • Date
    • Thread