Blog

RSS
  • (Script) Create iTunes 'Loved Tracks' Playlist

    16 Ago 2008, 4:24

    I've created a Python script that goes through your Loved Tracks and creates an iTunes playlist out of them.

    Due to the excessive tedium of AppleScript, I decided to use a Python module called Appscript. Therefore, users will need to install it first. Directions and the download link can be found here. Of course, if you don't already have Python (which is quite likely), you'll need to install it first.

    This script will be excellent for anyone not wanting to subscribe simply to play their Loved Tracks. It's also for those with hundreds of such tracks who are looking for an automated approach to collect them.

    As of right now, there are at least a few bugs and/or nice features missing. I'm bringing it into the light now since I've been toiling away on it for quite some time and because it will be helpful for users.

    1. It will search through all Loved Tracks EVERYTIME. However, once you run the script once, you're pretty much set.

    2. It does not verify whether the track already exists in the playlist, which means if you run it say, twice there will be a duplicate of every track. If you run it multiple times, it's advisable to delete all tracks from the playlist first.

    3. It currently only creates a playlist entitled "Loved Tracks."

    It's still a bit of a work in progress, but it also works quite well.


    To run the script, open an MS-DOS prompt or terminal and type the following:
    python [path to script] [username]

    I'm not sure if this will work for Windows users and I can't test it (easily). It may be necessary to specify the full path (i.e. 'C:/Python') in MS-DOS.

    I may create a simple GUI at some point for the less technical users.


    I hope this program comes in handy.