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


Click here to return to the 'iTunes, always on' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
iTunes, always on
Authored by: elrac on Jul 06, '04 03:13:55PM
A little problem with this setup is that iTunes will open every time the script is run. I have a similar setup but I have my script check to see if iTunes is running first.

#!/bin/sh
set h = "       2"
if($(test $(ps -x | grep /Applications/iTunes.app/Contents/MacOS/iTunes | wc -l) -eq "       2"))
then
if($(osascript -e 'tell application "itunes"' -e 'return player state is playing' -e 'end tell'))
then
	echo "$(osascript -e 'tell application "itunes"' -e 'return artist of current track' -e 'end tell')
$(osascript -e 'tell application "itunes"' -e 'return name of current track' -e 'end tell')"
else
	echo "Not Playing"
fi
fi

This is my first, and only, code in whatever language that happens to be, so it might not be that efficient. But it works.

-Elrac

[ Reply to This | # ]

iTunes, always on
Authored by: skellener on Jul 07, '04 07:23:40PM

There's always "Synergy"

http://synergy.wincent.com

Has a floater with album info and a control set in the menubar. Really nicely done and no scipting required.



[ Reply to This | # ]