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?
Want to start making money as a white hat hacker? Jump-start your white-hat hacking career with our 2020 Premium Ethical Hacking Certification Training Bundle from the new Null Byte Shop and get over 60 hours of training from ethical hacking professionals.