Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Over the years I've accumulated a fairly large iTunes library, with a number of duplicates (for instance, I have compilation CDs which have some songs I already had from the original CD, etc.).

Is there a good script that would let me automatically delete all the duplicates?

And no, I don't want the dysfunctional iTunes duplicate finder of which I am aware. To illustrate why not, check out this screenshot of two songs it thinks are duplicates (note the differences in length).

pathetic iTunes duplicate finder result

share|improve this question

If you hold down the option key, you get “Check Exact Duplicate Items.”

The songs above would not have matched had you used that option. You’ll still need to do some manual parsing, but you probably want to do that anyway.

share|improve this answer
This eliminates some non-exact duplicates, but still doesn't appear to look at duration of the song. – daviewales Feb 5 '13 at 6:34

Dupin from Doug's Applescripts is an awesome duplicate finder. You can set what fields match and the selection of fields is extensive and it will run the deletion for you. Doug keeps this up to date with the latest changes whenever Apple updates iTunes.

This is not a free app, but it is pretty inexpensive at $15.

share|improve this answer

Dupin is great; there is also Dupin Lite, for (I think) $8.

The problem with the iTunes duplicate feature is that it searches only by tags, not by duration. So the OP's example is a classic example of where it fails.

share|improve this answer

I was once annoyed with duplicate songs in my iTunes library. Luckily I found a professional tool to delete them all at a time. Here you can follow the steps below to achieve it:

  1. Download Music Cleanup and run it on your computer. Click "Start Scan" and all music in your iTunes library will be loaded to the program.

  2. Click "Duplicated Songs" and you will see all the repeated items.

3.Then choose one song in the file tray and all files of the same song will show up in the right column.

4.Check those you want to get rid of and click "Clear Duplicate". The duplicated item will then be cleared from your iTunes library or local music folder.To delete all duplicates at once, click "Clear all Duplicate".

share|improve this answer

protected by Community Jan 2 at 10:15

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.