Re: produce list of differences between two folders?
Re: produce list of differences between two folders?
- Subject: Re: produce list of differences between two folders?
- From: Michelle Steiner <email@hidden>
- Date: Wed, 7 Apr 2004 23:13:51 -0700
On Apr 7, 2004, at 8:27 PM, Bill Christens-Barry wrote:
I've been trying to write a handler that compares two folders
("folderOne" and "folderTwo") and returns a list "(inOneNotInTwo") of
the files that are in folderOne but not in folderTwo. For now I'm
willing to suppose that folderOne and folderTwo contain files only.
set folder1 to choose folder
set folder2 to choose folder
set inOneNotInTwo to {}
tell application "Finder"
set files1 to the name of files of folder1
set files2 to the name of files of folder2
end tell
repeat with thisfile in files1
if thisfile is not in files2 then
copy contents of thisfile to the end of inOneNotInTwo
end if
end repeat
inOneNotInTwo
--
"Beware the march of ideas."
_______________________________________________
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.