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: Tim Mansour <email@hidden>
- Date: Thu, 8 Apr 2004 22:26:57 +1000
I wrote a handler that does list comparison for strings, but am having
trouble understanding how to get it to work with lists of file specs
or aliases. My check of the archives hasn't struck pay dirt yet - can
anyone give me a clue?
Why not just convert the file specs to strings first (perhaps create
new lists to do this) then use your comparison routine?
Or, you could use the versatile "backup" command from the Satimage
scripting addition to compare the folders. From the dictionary:
backup : synchronizes 2 folders.
backup file specification -- the source folder
onto file specification -- the destination folder
[level small integer] -- 0: report only, 1: synchronize folders, 2 :
synchronize and report. Default 0.
[after date] -- files older than this date are not processed.
[recursively boolean] -- recursively synchronize subfolders. Default
true.
Result : string -- the (optional) report
If you use a "level" of 0, you get a report of the differences between
the two folders. Parse this report to do whatever you want with the
files.
____________________________________
Tim Mansour <email@hidden>
Phone 02 9212 1789 Mobile 0405 500 846
_______________________________________________
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.