• 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: Adam Bell <email@hidden>
  • Date: Fri, 10 Feb 2006 15:41:22 -0400

Had that OSAX for ages - forgot it knew RegEx.

On 2/10/06, Luca Pozzato <email@hidden> wrote:
hi everyboby,

no loops, just SATIMAGE osax

set found to {" 192.168.1.11", "192.168.1.66"}
set mustHave to {"192.168.1.11", " 192.168.1.66", " 192.168.1.34", "192.168.1.44"}


set Delete_found to change ".+" into "" in found with regexp
set Clean_mustHave to change found into Delete_found in mustHave

set list_to_string to change "(.+)" into "\\1\\r" in Clean_mustHave with regexp
set the_result to find text "(.+)" in list_to_string as text using "\\1" with regexp, all occurrences and string result

-- return {Delete_found, Clean_mustHave, list_to_string, the_result}
return the_result


ciao

Luca Pozzato


On Feb 9, 2006, at 21:54:47, demski wrote:

Hi all,
maybe easy, maybe not?
what I have: two lists 
set found to {" 192.168.1.11","192.168.1.66"}
set mustHave to {" 192.168.1.11","192.168.1.66"," 192.168.1.34","192.168.1.44"}

what would be the fastest way to create a list with the missing items like

set missing to {"192.168.1.34"," 192.168.1.44"}

feels like I would ahve to be close to it for its so easy, but...
greetz,

gruss, demski

Die Anderen · digitale mediendienstleistungen
Bellealliancestraße 58 b   ·   20259 Hamburg

fon: 040 41 26 61 81
fax: 040 41 26 61 83
email@hidden

Deutsche Handelsvertretung der Bogtrykkeri Rosendahls / Esbjerg


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      ( email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (



--
Some minds remain open long enough for a truth to both enter and leave without processing.
 _______________________________________________
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

References: 
 >how to compare two lists without looping? possible? (From: demski <email@hidden>)
 >Re: how to compare two lists without looping? possible? (From: Luca Pozzato <email@hidden>)

  • Prev by Date: Re: File exists on a posix path
  • Next by Date: Re: File exists on a posix path
  • 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