• 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: Trimming down a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: ACGI & OSX - pages greater then 32k???
  • Next by Date: Re: Record id of an item in Palm Desktop
  • Previous by thread: Re: Trimming down a list
  • Next by thread: Finder got an error:
  • Index(es):
    • Date
    • Thread