AppleScript: Create M3U file from iTunes Playlist

After Peter‘s request for a ‘play all’ in the SXSW pick list, I whipped up this Applescript that creates a .m3u, streaming playlist, file using TextMate.

The toughest part was translating iTunes’ MM:SS formatted track time into seconds for M3U.

MakeM3UFromiTunesPlaylistInTextMate.scpt