iTunes Playlist

Hello again!

I know how to get a list of playlists…

tell application "iTunes"
    get name of every playlist
end tell

However, I end up with “Music”, “Movies”, “TV Shows”, “Podcasts”, “iTunes U”, “Books”, “Purchased”, “Purchased on Seb’s iPod” and “Genius” at the front of every list, as well as “Voice Memos” at the end.

How can I remove these, even for people with older versions of iTunes who don’t have books and who don’t have “Purchased” playlists?

Any help would be appreciated! :slight_smile:


as the names are gathered “on the fly”, the result will contain only the available playlists on the specific computer.

But you could filter playlists by kind

Ok, thanks!