Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'iTunes, the menu bar, unicode, and GeekTool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
iTunes, the menu bar, unicode, and GeekTool
Authored by: iBlock on Feb 21, '10 10:27:23AM
I made a custom AppleScript that displays the Title, Artist and Album. I made it not display the album name if it is more than 35 characters long because of my limited menu bar space.

tell application "iTunes"
	set trackname to name of current track
	set trackartist to artist of current track
	set trackalbum to album of current track
end tell
set albumChar to count trackalbum
if albumChar is greater than 35 then
	set display to trackname & " by " & trackartist
else
	set display to trackname & " by " & trackartist & " from " & trackalbum
end if


[ Reply to This | # ]