Re: Trimming down a list
Re: Trimming down a list
- Subject: Re: Trimming down a list
- From: has <email@hidden>
- Date: Thu, 11 Apr 2002 17:52:09 +0100
Steve Thompson wrote:
>
The lines
>
{"An Item"} is in {{"An Item"},{"Another Item"}}
>
>
And
>
>
"An Item" is in {{"An Item"},{"Another Item"}}
>
>
... Both return false which confirms this which is the bit that I think is a
>
bug. A number of people including myself thought it would work so...
Standard issue AS gotcha, this. You have to make sure you balance the
classes of items on either side:
{{"An Item"}} is in {{"An Item"}, {"Another Item"}}
--> true
>
Anyway, adding "as text" fixes the problem:
But a bit clumsy, and probably slightly slower too due to the extra
coercions involved.
HTH
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.