With the advent of mp3 players, it has been made possible for people to carry unprecedented amounts of music around with them in their pockets. It is not uncommon to hear of people having collections of 5, 10, even 15 thousand songs (and some people, even more). Of the mp3 players, none is more popular than Apple's iPod and the software that runs it, iTunes.
With such large music libraries, however, it can become somewhat tedious to get rid of the songs that simply don't sound good or appealing to you anymore. It can take ages to go track by track through your music collection in iTunes and get rid of the songs you don't like.
That's where this instructable comes in. In this instructable, I will show you a way to automatically get rid of songs that are simply just plain awful, with some assistance from my good friend, Perl.
A good basic knowledge of Perl is extremely helpful when attempting to repeat this instructable, though not required (you could certainly just take the finished code product and copy/paste it and it will work just fine). For those interested in Perl, I highly recommend the book "Learning Perl" from O'Reilly, it's a good read and one of the best written books on Perl I have had the chance to read.
IMPORTANT: While the methods presented here will work if done correctly, I cannot and simply will not accept any responsibility if you do something stupid and delete your precious songs. Please strongly consider backing up your music files before attempting to write or execute a script such as the following. Just err on the side of caution so that we don't have any feelings hurt if you don't, thanks.
Read the warning? (Yes, even you, person who didn't read the warning) Great! Let's get started :-)
Update: It seems some perl scripters have been hard at work writing up iTunes scripts. For a variety of iTunes-related scripts, check out Teridon's Scripts.
autodelete.txt5 KB
Remove these ads by
Signing UpStep 1Getting Started
1) A computer (duh)
2) iTunes (double duh)
3) Perl (hard to run a Perl script without Perl, wouldn't you say?)
4) Your favorite editor (I'm a proponent of vi and vim myself, but any text editor should do the trick)
5) An iPod (not mandatory, but nice to have for reasons that will be made clear soon enough)
Getting Perl: Follow the instructions here, should be simple enough:
http://www.perl.com/download.csp
Once you have Perl downloaded, installed, and ready to go, we'll want some background information on what it is we're doing. It should be noted that the script was originally developed for Mac OS X, although the same methods should work on non-Unix based OSes such as Windows. Time for the boring, er, "educational" part of the Instructable.
| « Previous Step | Download PDFView All Steps | Next Step » |
10
comments
|
Add Comment
|
admin
says:
![]() |
Add Comment
|
















































