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


Click here to return to the 'Show current iTunes song in X-Chat Aqua' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Show current iTunes song in X-Chat Aqua
Authored by: anaxamander on Nov 08, '05 01:37:07PM
Get the filename of the currently playing song in iTunes:
basename "`osascript -e 'tell application "iTunes" to set thePath to location of current track' -e 'POSIX path of thePath'`"
Soul Mekanik - Robots.mp3
basename "`osascript -e 'tell application "iTunes" to set thePath to location of current track' -e 'POSIX path of thePath'`" | awk -F '.m[4p][a3]$' '{print $1}' 
Soul Mekanik - Robots

[ Reply to This | # ]