Compare files for 'find duplicates' script
Compare files for 'find duplicates' script
- Subject: Compare files for 'find duplicates' script
- From: pete boardman <email@hidden>
- Date: Mon, 21 Nov 2005 16:51:03 +0000
I'm trying to write a 'find duplicates' script (couldn't find an
easier solution out there).
It gets the Finder to assemble a list of files with modification
dates and sizes, sorts the list, then goes through and finds the list
entries that have the same size and modification date (I'm assuming
that duplicates may not have exactly the same name). Items marked as
duplicates can then be labelled, moved, etc.
Nothing too difficult so far, but I'd like a more reliable test for
two files being the same - just comparing size and modification date
doesn't seem 100% reliable...
My explorations haven't yet turned up an easy way to do this. I found
some interesting shell commands (eg md5, diff), but realised that
they couldn't easily cope with some files (such as fonts) that appear
to 0 bytes big. Tthe Finder reports the correct size for these.
Are there any clever ways to find out whether two files are the same?
cheers
Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden