• 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: Frontmost document??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frontmost document??


  • Subject: Re: Frontmost document??
  • From: Chris Page <email@hidden>
  • Date: Fri, 9 May 2003 19:01:15 -0700

On Friday, May 9, 2003, at 16:35 US/Pacific, Shane Stanley wrote:

On 10/5/03 8:50 AM +1000, Scott Lewis, email@hidden, wrote:

I have found that using "front document" instead of "document 1" is better.

The two are identical.

In fact, as far as I am aware, "front" is just an AppleScript term for looking up the item with index 1. That is, applications never see "front" in an Apple event, they only see a request for the object with index 1. If you run the following script in Script Editor:

tell application "Finder"
front disk
end tell

You'll see the following in the event log:

tell application "Finder"
get disk 1
-> startup disk
end tell

--
Chris Page - Software Wrangler - Palm, Inc.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Frontmost document?? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: list of installed fonts on OS X?
  • Next by Date: Re: Frontmost document??
  • Previous by thread: Re: Frontmost document??
  • Next by thread: Re: Frontmost document??
  • Index(es):
    • Date
    • Thread