Re: comparing and updating lists
Re: comparing and updating lists
- Subject: Re: comparing and updating lists
- From: Bis <email@hidden>
- Date: Tue, 21 Jan 2003 15:48:15 +0000
thanks rob
your script was very helpful in enabling me to write a script which
copies missing files from one folder to another.
bis
>
Hi,
>
>
See if the following script helps you at all, it'll check every item
>
of list 2 to see if it's in list 1, if not then it will add it.
>
>
set list1 to {"1", "2", "3"}
>
set list2 to {"1", "2", "3", "4"}
>
>
>
repeat with theValue in list2
>
if list1 does not contain theValue then
>
set list1 to list1 & theValue
>
end if
>
end repeat
>
>
>
>
Good Luck!
>
>
Rob
>
>
Rob Stott
>
AppleScript Developer
>
Trident UK
--
Bis Dasgupta
Web Production Technician
tel: +44 (0) 207 970 4930
_______________________________________________
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.