dougscripts.com

September 13 2017 - 7:03 am

Playlist Description in iTunes 12.7

I really like that you can add a description to playlists. In iTunes 12.7, now that “Edit Playlist” is gone, it’s even less obvious how to do this than previously. In iTunes 12.7, make sure a playlist is in Playlist View (rather than Songs View or Album View, and so on). Right-click anywhere in the header of the playlist. In the contextual menu, select “Add Description” or “Edit Description”.

AppleScript has been able to access the description of a playlist since iTunes 12.4 and it doesn’t care what the current View is. Of course, the description only displays in Playlist View.

tell application "iTunes"

set thePlaylist to (get view of front browser window)

if thePlaylist's special kind is not in {none} then return

— add folder to list if/when it becomes possible

try

set currentText to (get thePlaylist's description)

if currentText is missing value then set currentText to ""

on error

return

end try

try

set newDescription to text returned of ¬

(display dialog "Enter description:" default answer currentText ¬

with title (get thePlaylist's name))

tell thePlaylist to set description to newDescription

on error

return

end try

end tell

Open this in Script Editor by clicking the little script icon. Save it named whatever you like as a Script (.scpt) in your ~/Library/iTunes/Scripts/ folder so that it will be listed in the iTunes Script menu. It’s a great candidate for a keyboard shortcut.

Unfortunately, while you can manually edit the description for a Playlist Folder, AppleScript hasn’t caught up. I’m hopeful this will be added to a future version.

Site contents © 2001 - 2017 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Legal.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
One who says "it cannot be done" should not interrupt one doing it.