Re: Can not get "item" from "position"
Re: Can not get "item" from "position"
- Subject: Re: Can not get "item" from "position"
- From: Emmanuel <email@hidden>
- Date: Wed, 4 Apr 2007 19:05:54 +0200
At 12:03 PM -0400 4/4/07, Andrei Tchijov wrote:
Thanks for reply. It does work with ( ... as list ). It works with (
get ... ) as well (thanks Emmanuel).
It looks like O'Reilly is lying in its AS book. They claim (page 239
-- Secondary List Classes ) that Point is in fact a list -- which is
obviously not true. Same goes for "boundary" -- it looks like it is
NOT list of 4 values.
The explanation is not so. The problem is that, when you write: item
1 of position of window 1, Finder attempts to resolve the whole
reference, and Finder's programmers did not implement that particular
long chain of descriptors. While what you really want is: ask Finder
for the position of window 1, then ask AppleScript what the item 1 of
that quantity is. Whence the get which forces Finder to resolve
"position of window 1" before passing it to AppleScript.
Emmanuel
_______________________________________________
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