Re: Sifting a list sans loop
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