Re: Finding differences in 2 folders
Re: Finding differences in 2 folders
- Subject: Re: Finding differences in 2 folders
- From: AppleScript Guru <email@hidden>
- Date: Sat, 06 Oct 2001 00:05:43 -0400
on 10/5/01 9:52 AM, you said:
>
Does anyone know of a script that will take 2 folders and display the names
>
of the unique files in each?
Try this...
set folder1 to (choose folder) as string
set folder2 to (choose folder) as string
set folder1List to list folder folder1 without invisibles
set folder2list to list folder folder2 without invisibles
set folder1UniqueList to {}
set folder2UniqueList to {}
repeat with a from 1 to (count folder1List)
set cFolderItem to item a of folder1List
if folder2list does not contain cFolderItem then set end of
folder1UniqueList to cFolderItem
end repeat
repeat with a from 1 to (count folder2list)
set cFolderItem to item a of folder2list
if folder1List does not contain cFolderItem then set end of
folder2UniqueList to cFolderItem
end repeat
{folder1UniqueList, folder2UniqueList}
-Ben
Benjamin S. Waldie
Write Track Media
(AppleScript GuRu)
AppleScript Web Site:
http://www.AppleScriptGuru.com
http://www.wtmedia.com