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: vman on Oct 09, '04 12:23:32PM
Here's another variation; I mainly wanted to be able to see which tracks are playing on some streams i often listen to (by the way all the existing freeware apps I checked didn't do this) so I've added it. Also because of my limited space left on my menubar I kept it very simple displaying only title, artist & album. Using a small font with geektool it display 2 lines just fitting in the menubar. tnx to all posters
if ps x | grep iTunes | grep -q -v grep;   then 
  osascript -e 'tell application "iTunes"
	set a to current track
	if current stream title is not missing value then
		set b to current stream title
		set b to artist of a & "-" & album of a
	end if
	name of a & "\n" & b
  end tell' | iconv -f utf-8 -t ucs-2-internal

[ Reply to This | # ]