• 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: has <email@hidden>
  • Date: Wed, 4 Apr 2007 18:01:40 +0100

Michelle Steiner 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.

It is true; point is a list.

Technically it's a QuickDraw Point, but AppleScript doesn't have a built-in 'point' type so just converts point values to two-item lists, which is good enough.



Finder's "position" property is a property; it is not a point, even though it describes a point.

The easier explanation is: A property contains a value.

Also, a person can go mad from thinking too hard about this stuff. ;)

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

_______________________________________________
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: Philip Aker <email@hidden>
    • Re: Can not get "item" from "position"
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Can not get "item" from "position"
  • Next by Date: Re: Can not get "item" from "position"
  • Previous by thread: Re: Can not get "item" from "position"
  • Next by thread: Re: Can not get "item" from "position"
  • Index(es):
    • Date
    • Thread