• 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: Can not get "item" from "position"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Can not get "item" from "position"
      • From: Shane Stanley <email@hidden>
References: 
 >Can not get "item" from "position" (From: Andrei Tchijov <email@hidden>)
 >Re: Can not get "item" from "position" (From: Michelle Steiner <email@hidden>)
 >Re: Can not get "item" from "position" (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: Can not get "item" from "position"
  • Next by Date: Re: Launch remote script
  • Previous by thread: Re: Can not get "item" from "position"
  • Next by thread: Re: Can not get "item" from "position"
  • Index(es):
    • Date
    • Thread