if you're on a mac, you can use the following i just whipped up and leverages this great toolkit by Dave Bayer...shout out.
http://www.math.columbia.edu/~bayer/Python/iTunes/
1) install daves stuff ( just " iTunes.py download" and "sudo easy_install appscript"
2) cd to where you put iTunes.py
3) copy and paste the python script below into a file called, say copyPlaylist.py
4) run as follows: python copyPlaylist.py ["playlist name"] [ out_dir]
so:
% python copyPlaylist.py rockin /Volumes/G1/music
caveats: absolutely no error checking , if directories exist, playlist exists, or if destination has enough room.
but, it is quick and simple (attached as well, but rename to .py)
import os, sys,codecs
import xml.etree.ElementTree as ET
import shutil
from appscript import *
from iTunes import *
if len(sys.argv) is not 3:
print "usage: [playlist_name] [copy directory]"
sys.exit()
outdir = sys.argv[2]
pl = get_playlists()
pl_name = sys.argv[1]
print pl_name
for p in pl:
if p.name() == pl_name:
tracks = get_tracks(p)
for t in tracks:
print t.location().path
print t.name()
shutil.copy(t.location().path, outdir)