• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Compare files for 'find duplicates' script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Compare files for 'find duplicates' script
      • From: Emmanuel <email@hidden>
    • Re: Compare files for 'find duplicates' script
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Using "character" in TeX-Edit
  • Next by Date: Re: Compare files for 'find duplicates' script
  • Previous by thread: Re2: Using "character" in TeX-Edit
  • Next by thread: Re: Compare files for 'find duplicates' script
  • Index(es):
    • Date
    • Thread