Home » Development » Geektool » iTunes Current Track
This is a script that I wrote to get Geektool to display the current track that iTunes is playing.
Edit: With the addition of a lovely tool iconv, this script now supports all known characters (including non-english characters).
Sample Output:
Zurück zum Glück Die Toten Hosen
Geektool Shell Entry:
osascript /path/to/itunes.scpt | \ iconv -f utf-8 -t ucs-2-internal
Code:
tell application "iTunes" if it is running then set this_name to the name of current track set this_artist to the artist of current track this_artist & "\n" & this_name end if end tell