• 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: 'aete' & AppleScript suite question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'aete' & AppleScript suite question


  • Subject: Re: 'aete' & AppleScript suite question
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 04 Apr 2002 17:16:52 -0800

On 4/4/02 4:36 PM, "Christopher Nebel" <email@hidden> wrote:

> Linked lists, which were introduced in AppleScript
> 1.1, are the other way around.

From the documentation Shane quoted, it appears that although the _term_
linked list (like vector) appeared in AS 1.1, it was actually vector that
was the new implementation, yes?

(Aside: shortly after beginning to AppleScript, I hit my head against this
when I kept coming upon an error in Outlook Express - something along the
lines of 'contact id 45 not a vector: access not allowed'. I was not aware
at the time that you had to have the same class on both sides of the
'contains' operator, since whenever i searched for strings in lists, it
worked OK due to AS's string to single-item-list-coercion:

if "a" is in {"a", "b", c"}

doesn't error, although by rights it should be:

if {"a"} is in {"a", "b", c"}

But there is no 'contact-to-single-item-list' implementation in OE; you
really do have to write:

if {contact id 5} is in contactList

or you get that 'vector' error, which I couldn't make head nor tail of.
Helpful people on this mailing list sorted it out - the 'contains/is in'
rule pretty quickly, the 'vector' part with a little more effort. I believe
it was Bill Cheeseman on that occasion who remembered vectors and had the
docs, but didn't quote the whole thing. Thanks, Shane, for filling the gap
at long last.)

--
Paul Berkowitz
_______________________________________________
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: 'aete' & AppleScript suite question (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Quickie Question
  • Next by Date: Re: 'aete' & AppleScript suite question
  • Previous by thread: Re: 'aete' & AppleScript suite question
  • Next by thread: Re: 'aete' & AppleScript suite question
  • Index(es):
    • Date
    • Thread