Jared Barden wrote: >If I'm using appscript to delete a track from a user_playlist (which >is where I need to start from), what is the best way to delete that >same track from the library playlist as well? Deleting from the >playlist only removes it there, obviously, and that's not what I'm >looking for.
iTunes scripting implementation is pretty skanky. You have to use the track's database_ID: from appscript import * itunes = app('iTunes') tracktodelete = itunes.playlists['test list'].tracks['test track'] itunes.playlists['library'].tracks.filter(its.database_ID == tracktodelete.database_ID.get()).delete() If you're deleting multiple tracks, you'll have to iterate over a list of database IDs and delete the tracks one at a time. HTH has -- http://freespace.virgin.net/hamish.sanderson/ _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig