• 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: Sifting a list sans loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sifting a list sans loop


  • Subject: Re: Sifting a list sans loop
  • From: Aldo Bergamini <email@hidden>
  • Date: Mon, 28 Jan 2002 11:52:44 +0100

Serge Belleudy-d'Espinose is suspected to have said:

>>You could try asking for the "plain text" of the list. I'm not sure how
stable
>>that would be on large lists, but it works fine with small lists.
>>
>>set theList to {1, 1, {"2"}, "3", true, {4}, "3", 1}
>>plain text of theList
>>--> {"3", "3"}
>
>!!!
>
>This is the second time in a week I get to see such magic code everybody
>seems to know but I can't find any written reference to in the ASLG or
>elsewhere.
>
>I wonder, how do you guys know? being old-timer? word of mouth? or is
>there a repository only the blessed ones know- and the side one, how do I
>become bless :)

Not being a 'blessed' one but a curious old-timer I tried the codelet in
your messages and discovered something funny.

On my system (9.2) "plain text" gets changed to:

>strings of theList

This looked suspiciously similar to a 'type name' so I tried the
following ones:

>booleans of theList
>lists of theList

They all work!

It seems to me that the 'reference forms' of AppleScript are really a
Power Tool...

Aldo


  • Follow-Ups:
    • Re: Sifting a list sans loop
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Sifting a list sans loop (From: "Serge Belleudy-d'Espinose" <email@hidden>)

  • Prev by Date: Re: Sifting a list sans loop
  • Next by Date: Re: Sifting a list sans loop
  • Previous by thread: Re: Sifting a list sans loop
  • Next by thread: Re: Sifting a list sans loop
  • Index(es):
    • Date
    • Thread