Re: Frontmost document??
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.