If you've ever mistakenly moved your music files around without relinking them in iTunes, you might now be noticing that you have a long list of tracks asking you to relink them.
You could go through them one by one, redirect them to the new file location, then delete any copies. Or you could try to track them all down and delete the old references. But come on, who wants to spend that much time when you can clean up your library using this clever method using only Notepad on your Windows computer.
We're going to be making a run at this problem using a script, so open up Notepad. Don't worry, the code's already written for you, you just need to copy and paste it.
Copy the code over at GitHub, which looks like this:
Now simply run the file by double-clicking on it. In a few minutes, it should open a dialogue box telling you how many tracks it deleted. Feel free to keep this code handy for whenever you need to clean up your iTunes library!
If it isn't working, make sure your computer didn't save the file as "RemoveDeadTracks.js.txt" by default. Make sure that the actual file extension is .js.
Now this is how you do it on a Windows computer, but does anyone know of a way to do this on a Mac?
Save 20% on everything in the Null Byte shop this Cyber Monday with coupon code CMSAVE20. Apps and software in the store have even bigger savings with code CMSAVE40. And for the largest discounts, check out the online courses for 70% off with CMSAVE70. Now's the time to learn hacking and get hacking gear.