Managing Playlists
NEW: Playlist Manager
I create, reuse, and recycle playlists frequently and my playlists rarely remain static. A hindrance in my playlist management is the inability to select more than one playlist at a time to, say, delete or rename them. Well, I got around to fixing that with Playlist Manager.

This applet can perform common useful tasks on a multiple selection of playlists: rename (add text, remove text, search and replace text), toggle repeat and shuffle, duplicate, delete, export, merge.
UPDATED: Drop to Add and Make Playlists v2.2
Drop to Add and Make Playlists v2.2 will accept a single dropped folder containing media files and will add each file to iTunes and then distribute the tracks to playlists named using your choice of the tracks’ “Artist – Album” tags or the name(s) of the folder(s) containing the file.
This latest version fixes a problem with trying to process files that cannot be added to iTunes.
Custom Playlist Column Views, Sorta
Here’s something I’m often asked which Correspondent Rob Falk put succinctly: “Is there a way to clone a playlist view…other than the Library [using Assimilate View Options]? I frequently need to create a playlist that has a specific set of columns, that are not the same as the library, and was looking for a way to automate that.”
There sorta kinda is.
My first thought was to use AppleScript to just duplicate an existing playlist that already had the requisite view settings. (The duplicate command is typically used to copy a track from one playlist to another.) Unfortunately, when iTunes’ AppleScript duplicate command is used to copy a playlist itbafflinglycreates a new untitled and empty playlist using the properties and views of the Music library playlist. Same as just creating a new playlist. That doesn’t seem right, does it? You’d thinkwell, I thought anywaythat using duplicate to copy a playlist would behave the same as the playlist contextual menu command “Duplicate” (control-click or right-click on the name of the playlist):

So, my next thought was…just use “Duplicate”. The playlist will be perfectly duplicated, column views and all, and selected in the Source list. Now you’ll have a new playlist named the same as the original with a “1” at the end and which is populated with the original’s tracks (if it had any). You could create a bunch of playlists with columns set the various ways you like and then “Duplicate” them when you required one. Just rename the new duplicated playlist and delete any tracks. And that part can be automated.
The workflow, then, is to “Duplicate” a playlist manually with the contextual menu command and then run this script right afterwards:
NEW: Make Playlists By Tag
I’m finding it difficult to describe what this script does despite its seeming obviousness.
Make Playlists By Tag will create new playlists based on a particular tag. For example, in the screenshot below “Artist” is selected in the popup:

(You can also choose Album Artist, Album, Composer and their “Sort” siblings, Genre, or Year.) Each artist is listed with a checkbox. When the Proceed button is clicked, each checkmarked entry will be used as the name of a new playlist and every track whose artist tag is that entry will be copied to it. And so on if “Year” or “Album Artist” was selected.
As it happens, “Patti Smith Group” and “Pearl Jam” already exist as playlists so they are distinguished in the list by being colored red. I may not want to re-create these.
I’m not sure if I would use it to create a playlist of every Artist or Album; that may bloat iTunes’ database.
A great companion to this app is Merge-Delete Playlists, which was just updated with some minor fixes.
Thousands of Empty Playlists? Redux
So there’s this glitch with iTunes Match that somehow creates thousands of empty playlists. I posted earlier about this and snippeted a simple script to scratch the empties from your iTunes. Too simple since it appears to get really bogged down trying to examine playlists while iTunes is deleting them. Correspondent Lowell Stewart suggested deleting in batches to give the processing some breathing room, and I’ve incorporated this in an update to Delete Empty Playlists. It’s definetly speedier using Lowell’s suggestion.
If you’ve been affected by an iTunes Match Empty Playlist Glitch then use Delete Empty Playlists v2.0.
Smart Playlist to Gather Upgradeable iTunes Match Tracks
Macworld’s Jason Snell describes in this article how to upgrade tracks with iTunes Match to 256kbps AACs. iTunes Match will allow you to re-download these types of files even if the matched tracks are lesser quality. To gather these lesser-quality matched-tracks together, Jason describes how to create a Smart Playlist with the correct criteria. I’ve created that Smart Playlist and exported it and have included it in a script which, when run, will add that Smart Playlist to your iTunes for you. Here is the direct download link. Just download and double-click the script; make sure iTunes is running. Be sure to read Jason’s article to understand the rest of the details.
UPDATED: Assimilate View Options v3.0
Assimilate View Options v3.0 re-creates a selected playlist so its View Options (visible columns) are the same as the main Music library (taking advantage of the fact that new playlists acquire the Music library’s View Options). Works only with regular playlists and Smart playlists.
This latest version works with playlists inside a folder playlist.
Assign it a keyboard shortcut for ease of use.
UPDATED: Merge-Delete Playlists v3.0
Merge-Delete Playlists v3.0 (formerly named “Batch-Delete Playlists”) will allow you to merge the track contents of two or more playlists or delete any number of playlists at once, including Smart, Genius, and folder playlists. The merge feature will prevent the same tracks that may appear in different source playlists from being duplicated and has an option to delete original playlists. The delete feature only deletes the playlist; tracks, of course, remain in the library.
Very handy when assigned a keyboard shortcut.
This latest version is written as a Cocoa-AppleScript applet for OS X 10.6 or better; adds the merge feature.
Create Default Smart Playlist Templates
A problem with Holiday music hanging around your iTunes library all year long is that, without a cautious Smart Playlist strategy, Grandma Got Runover by Mannheim the Christmas Donkey Steamroller can disrupt your tranquility at any time of year. Like pool-side in August. And there is nothing un-cooler than that.
Now it’s unlikely that I would create a regular playlist containing any speck of Holiday music during non-Holiday times of year on purpose. But you gotta watch them Smart Playlists. Thus, for a while, the criteria for every new Smart Playlist I created started with “Genre does not contain Holiday|Xmas|Christmas”.
That’s a pain to have to remember. And to enter for every new Smart Playlist.
However. The script Export Smart Playlist Criteria allowed me to export a Smart Playlist template that has several of my preferred Smart Playlist criteria already entered. These would include “Genre does not contain Holiday|Xmas|Christmas”, “Live Update”, and several other idiosyncratic restrictions and requirements. Now whenever I want to quickly create a new Smart Playlist I import that template XML “starter” and then choose “Edit Smart Playlist” from its contextual menu to add only minor finessing.
Now, whether you care to read on depends on whether you are thinking either:
“Dude, you can just keep a generic Smart Playlist in your sidebar and Duplicate it like whenever.”
(in which case you’re right, you win, like whatever) or:
“But Doug. You could write a script that automatically loads and selects your generic Smart Playlist template file by pressing a shortcut key!” (more…)

Join Together