iTunesFS allows you to mount the "iTunes Music Library.xml" file as a file system, using the excellent MacFUSE (http://code.google.com/p/macfuse/). As of version 1.1, all local iPods will also be mounted in the similar fashion. All playlists of either iTunes or the iPods are exposed as directories, with their respective entries.