#!/usr/bin/env python

list_playlists.py

Copyright © 2008 Dave Bayer. Subject to a BSD-style license.


Usage:

list_playlists.py outfile

Lists all custom iTunes playlists created by the user.

This Python script is part of the iTunes project.


Import iTunes module:

from iTunes import *

Open command line argument as the unicode file out:

out = open_arg('outfile')

List all playlists:

list_playlists(out)