Create an iTunes playlist sorted by track number

Jan 18, '05 10:03:00AM

Contributed by: Anonymous

I know you can create a Smart playlist of your album tracks that will automatically place the tracks in the correct order, but I like to use the various AppleScripts found at Doug's AppleScripts for iTunes to automatically rip my audiobook CDs to a single track, then create a playlist of those tracks and name the playlist with the name of the CD. One problem I had run into was I sometimes did not have the CDs in the correct order, therefore the track order would not be correct in the resulting playlist.

I thought to solve this problem by including a script to reorder the tracks by the track number; however, I could not find such a script. I am not an AppleScripter, so after examining other scripts and searching the internet, I finally put together one that works. As I said, I'm not a scripter, so someone could problem make this simpler, but it works as is.

Comments (4)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050114201652491