Hassle-Free Playlist Description
One of the neat things that Apple added to iTunes not so long ago is the user-editable description that is available for regular Playlists (Smart, Folder, Genius and Master library playlists do not have this option) and is visible when the Playlist is in Playlist View. You can edit this description by clicking the Playlist's "Edit Playlist" button. But when you do this, the iTunes interface changes: a column appears at the right edge of iTunes listing the current tracks in the playlist to which you can drag tracks. It also will change the (now center column) browser window to display the full Music library, which totally discombobulates me.
I do not always care for this when I just want to edit the Playlist's description. I'd prefer to do so without shaking up the interface. This script will do it:
tell application "iTunes"
try
set thisPlaylist to (get view of front browser window)
tell thisPlaylist
if special kind is not none or smart or genius or shared then error
end tell
on error
beep
return
end try
set defaultAnswer to (get thisPlaylist's description)
if defaultAnswer is missing value then set defaultAnswer to ""
set newDescription to text returned of ¬
(display dialog "Enter the description text for the playlist" & return ¬
& thisPlaylist's name default answer defaultAnswer)
try
set thisPlaylist's description to newDescription
end try
end tell
Save this named whatever you like to your [home]/Library/iTunes/Scripts/ folder so that it will appear in the iTunes Script menu. Select a playlist and launch the script by selecting it from the Script menu. It will quit if the selected playlist is the wrong kind. It will display the current description for the playlist if it exists, otherwise the text field will be blank. Enter up to 255 characters, which is the most that the description can accept, and then click "OK".
Give this a keyboard shortcut to maximize your quality of life.