5 months ago

iTunes track info on your desktop

An applescript to show what’s playing in iTunes on your desktop using GeekTool

iTunes track info

I wrote this script as a simple way to display what I was listening to in iTunes. It’s run using osascript in GeekTool, with a refresh of 1 second.

The script first checks to see if iTunes is running, then goes on to query iTunes to get the track name, the artist and the album of the currently playing track, as well as the star rating, the current position and the total track length and it’s place in the current playlist.

It then does a bit of math on the various bits and pieces it retrieves from iTunes, formats it all so it’s easy to read [and crops it if the text is too long to fit in the space provided] and outputs the result in two lines of text. The finished product looks like what you see in the image above.

I’ve made available for download the .scpt file for use in Script Editor as well as a plain-text .txt file.