• 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: how to compare two lists without looping? possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to compare two lists without looping? possible?


  • Subject: Re: how to compare two lists without looping? possible?
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 09 Feb 2006 13:12:25 -0800
  • Thread-topic: how to compare two lists without looping? possible?

On 2/9/06 1:01 PM, "Mark Lively" <email@hidden> wrote:

>
> Only with a loop
>
> set missing to {}
> repeat with anitem in musthave
>      if found does not contain (""&anItem)
>            then set missing to missing &(""&anItem)
>      end if
> end repeat

Better (aside from not erroring on missing spaces) would be:


set missing to {}
repeat with i from 1 to (count mustHave)
    set anItem to item i of my mustHave
     if found does not contain {anItem}
           then set end of missing to anItem)
     end if
end repeat

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: how to compare two lists without looping? possible?
      • From: "Chris Tangora" <email@hidden>
References: 
 >Re: how to compare two lists without looping? possible? (From: Mark Lively <email@hidden>)

  • Prev by Date: Re: how to compare two lists without looping? possible?
  • Next by Date: Re: how to compare two lists without looping? possible?
  • Previous by thread: Re: how to compare two lists without looping? possible?
  • Next by thread: Re: how to compare two lists without looping? possible?
  • Index(es):
    • Date
    • Thread