Exporting iTunes smart playlist definitions

itunes

I have 30 or so smart playlists defined in iTunes on the PC. What I'd like to do is export all of these definitions. To clarify, I don't want to export the songs in each of these playlists, I want to export the definition (e.g. "Artist contains Foo").

I have a lot of conditions defined for each playlist, and would prefer a solution that doesn't involve manually performing the same steps 30 times. For example, if I could export registry settings, this would be the best solution.

Best Answer

If you select a smart playlist, then choose File > Library > Export Playlist... and choose the XML file format, you can then use the corresponding Import Playlist... command from another iTunes library to import the smart playlist definition.

Unfortunately, iTunes only lets you select one playlist at a time, so there's no way to select multiple playlists and export them at the same time. You can do the "Export Library..." which does everything, but then you have all sorts of extra stuff you don't want.

If you're comfortable hacking around a bit though, you could export the whole library, then use PlistEdit Pro to edit the file and remove all the playlist and track dictionaries that you don't want, leaving just your smart playlists. Then you'd have all the playlist definitions in a single file that you can import into another iTunes library.