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](https://i.stack.imgur.com/OjhmS.png)