December 16 '12 - 2:10 pm

Show Current Song, Really

iTunes 11.0.1 fixes an issue with the “Show Current Song” (the Command-L shortcut). Before iTunes 11, using this command would select the currently playing track in the playlist it was playing from. In iTunes 11 there seemed to be some inconsistency with this behavior in different playing contexts. But now with iTunes 11.0.1 the command consistently selects the currently playing track in that track’s library regardless of its playlist source (if any). Coincidentally, this also happens to be the task performed by a script I wrote about to workaround the afore mentioned inconsistency.

I frequently find it convenient to access the playlist a track is playing from but “Show Current Song” doesn’t do this any more. So here is a script that selects the currently playing track in its source playlist (the pre-iTunes 11 behavior). I’m guessing the reveal command was fixed because this didn’t work quite right with iTunes 11, or maybe it had to do with those inconsistencies.

tell application "iTunes"


reveal current track

end try

end tell

Interestingly, the playlists list will become visible if it is not already and the correct track selected. The try block prevents an error in case the script is run while iTunes is not playing, in which case there is no current track property. Attach a shortcut. Option-Command-L might be a good one. (Shift-Command-L is used by the “Search With Google” Service.)

Site contents © 2001 - 2016 (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.