Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Compare two iTunes music folders and eliminate duplicates

Through various Mac upgrades (MBA to Mini-both with Yosemite), as well as HD storage changes, I've ended up with 3-4 music folders with 80-95% correlation among them. They are not exactly alike, however, and I fear losing some good toons if I don't pick a "master" and transfer missing files in other folders into the master, so I end up with all my tunes in one music folder.


Can anyone point me to an AppleScript or other alternative that will allow me to semi-automate my search process? I've been doing it manually, and I've got about 4-5 weekends of part time efforts into it with no end in sight - boring!


Thanks in advance to anyone with more advanced knowledge and experience than I.

Mac mini, OS X Yosemite (10.10.1)

Posted on Jan 4, 2015 1:00 PM

Reply
Question marked as Best reply

Posted on Jan 4, 2015 1:23 PM

I have seen this question asked multiple times in the 10 years I have been on this forum and not seen a solution. You can see if there are third party solutions out there, though you have to be confident in the skill of the programmer.


You could combine all the media from the various libraries into one library, then handle them all from inside that library using the find duplicates features of iTunes. Yes, it is still manual one-by-one but at least then you are looking at them all in front of you in one place. I also know I have things that iTunes thinks are duplicates but are not really, and some files that are duplicates that iTunes doesn't think are, so in the end if you want 99.99% certainty you have ot do it yourself.

12 replies
Question marked as Best reply

Jan 4, 2015 1:23 PM in response to NeilKo

I have seen this question asked multiple times in the 10 years I have been on this forum and not seen a solution. You can see if there are third party solutions out there, though you have to be confident in the skill of the programmer.


You could combine all the media from the various libraries into one library, then handle them all from inside that library using the find duplicates features of iTunes. Yes, it is still manual one-by-one but at least then you are looking at them all in front of you in one place. I also know I have things that iTunes thinks are duplicates but are not really, and some files that are duplicates that iTunes doesn't think are, so in the end if you want 99.99% certainty you have ot do it yourself.

Jan 4, 2015 1:45 PM in response to NeilKo

What exactly is the scenario? Do you already have multiple media folders but only one iTunes library? If that is the case, consolidating should get iTunes to put all the files listed in that library in the main active media folder and the others can be deleted (or better yet, put on an archive drive, then delete and see if everything is as it should be).


I use an older iTunes so I can't give you a step-by-step in new iTunes. Here's some references. I guess "consolidate" is now called organize.


iTunes 11 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH12165 - Unfortunately this is misnamed. It should say "Change where your media files but not where your library files are stored" - more information at: https://discussions.apple.com/thread/5036221?answerId=22026652022#22026652022 - and steps 5-8 in https://discussions.apple.com/thread/5782936?answerId=24491967022#24491967022 -- you don't need to actually change it from default, just ensure everything end up in one folder.


iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/ht1449


Sept. 2010, Consolidate selected content - https://discussions.apple.com/thread/2589812 and April 2014, https://discussions.apple.com/thread/6067967?answerId=25414357022#25414357022


turingtest2 post on consolidating old and new iTunes library structure into one - https://discussions.apple.com/thread/3933432?answerId=18327128022#18327128022

Jan 4, 2015 2:01 PM in response to Limnos

Thanks. I think I've now got a path to follow, but I'll provide more details and then lay out my plan. I use v12. I upgraded my MBA to Mini, although I had Music on an external drive. After some learning efforts from the Forum I finally figured out to copy my iTunes Media from MBA to Mini, and then use prefs to point to new location of Music folder. I finally got my playlists working, again, which was my biggest concern, but then learned that for some reason my new "master" Music Folder did not have all album or songs within albums, so I started dragging an dropping into new Master. I then learned, belatedly, from the Forum that iTunes doesn't auto-find music dropped into its various folders in the master Music Folder. I'm now listening to tunes that have the incorrect ID on them, e.g., it is a Rolling Stones tune, but my MiniPlayer shows it in a Dusty Springfield cover.


Also, while I've pointed iTunes to my new master Music Folder, it seems to be sporadically playing tunes from one of my other Music Folders. So...


I seek, therefore, to combine all music properly into one Music Folder and then throw away all others (except backups on TimeMachine and CrashPlan). Once that is done, I then want to be sure my links from my playlists are all organized correctly.


I like your experimental design whereby I will combine all into one, separate, from my real Master and then point to that one to ensure that it works ok. I may take it a bit in steps, so I don't invest tons of time only to find that I've mess up along the way.


Thanks, again, for your guidance.

Apr 21, 2015 3:29 PM in response to NeilKo

Did you find a way to do this? One thing I am trying is I used the spotlight search and found ALL music files on my computer.User uploaded file

I'm deleting all the duplicates but my music files are still scattered all over my computer. I'm also wading through thousands of files ending in .caf (don't know what that is about)


I'm hoping I can delete iTunes, reinstall, and have iTunes search my whole computer for music files, iTunes will take a copy of everything and put it in an iTunes media folder and then I can save that file while I wipe my hard drive because I have some kind of infected adware slowing my computer to a crawl.


I don't care about saving my playlists but this is LABORIOUS! I can't figure out another way.

Apr 21, 2015 6:59 PM in response to nicholefrommccall

1. iTunes is basically a database. As such, you should never, ever go into the User > Music > iTunes folder and mock around there manually. The only way to avoid creating major issues is to delete, add, modify, etc, files thru the iTunes app interface.


2. If you already messed it up, make a backup of what you've got, then use Time Machine to revert the iTunes folder to an earlier, good version.


3. To clear your Mac of adware, download ClamXav and run it. http://www.macupdate.com/app/mac/15850/clamxav


4. To consolidate all your music into a single location go to iTunes > Preferences > Advanced > and check on the "Keep iTunes Media folder organized" and "Copy files to iTunes Media folder when adding to library" options. Click on the OK button.


From your description, I'm not sure if you actually have multiple iTunes folders, or just multiple folders with music files in them, so come back here if you have additional questions, or I mis-interpreted your description.

Apr 22, 2015 2:53 AM in response to Rysz

Rysz wrote:


3. To clear your Mac of adware, download ClamXav and run it. http://www.macupdate.com/app/mac/15850/clamxav


I do uncompensated tech support for the ClamXav Forum and have to say that neither ClamXav nor any A-V software is nearly as good at getting rid of adware as AdwareMedic, developed by thomas_r. a colleague of mine, operator of TheSafeMac web site and frequent contributor here in the forum on Mac Malware. It will safely and efficiently identify and remove all currently known adware. A-V software may find the installers, but normally leave the installed adware alone since it's considered to be a Potentially Unwanted Application/Process (PUA/PUPP) rather than a malicious infection.

Compare two iTunes music folders and eliminate duplicates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.