I have all my songs in my external hard drive, which is encoded in ntfs. When I add them to itunes, using
File -> Add To Library ... it create an alias of each file in my
/Users/<user_name>/Music/iTunes/iTunes Media/Music folder.
So far so good, but sometimes it gets confused and create 2 aliases for one same file (meaning the same file on my external drive). It also happens when I want to rescan a folder I have already added to iTunes, it will create a duplicate alias for all the files that were already there in iTunes.
So I end up with loads of duplicate aliases in my iTunes Music folder. It looks a bit like that:
<whatever the song name>.mp3 <whatever the song name> 1.mp3
So the second file is a duplicate. What I want to do is:
- Delete the aliases from the finder
- Delete the duplicates in itunes
As I have a lot of music, it would take a long time to delete everything manually. As I happen to be a software developer, I have written a script that deletes the duplicate alias files (in finder).
But then I end up with an iTunes library full of duplicates, that points to nothing since the alias as been deleted.
Is there a way to delete from the iTunes library all the files that can not be found ?