Re: COMPARING TWO LISTS
Re: COMPARING TWO LISTS
- Subject: Re: COMPARING TWO LISTS
- From: Michelle Steiner <email@hidden>
- Date: Sun, 11 Mar 2001 21:58:09 -0800
On 3/11/01 5:19 AM, David Walsh <email@hidden> wrote:
>
list1 is a list of files found and copied to FOLDER 2.
>
What i am trying to do is to compare list1 to nameList and
>
find out what files where not found and then generate a report on the missing
>
files.
set list1 to {"Birth Certificate", "Checking Out Step 3", "file2", "Late
Breaking News", "file1"}
--all but file2 and file1 are in the folder specified below.
set folderList to list folder "dora:foo"
--change path to your actual folder, of course.
set missingItemList to {}
repeat with searchItem in list1
if searchItem is not in folderList then
set missingItemList to missingItemList & searchItem
end if
end repeat
--> {"file2", "file1"}
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------