#!/bin/sh# iTunes now playing example script for snow leopard# for 10.5 you probably need to remove the 'arch -i386' part from the commands below#ARTIST=`arch -i386 osascript -e 'tell application "iTunes" to artist of current track as string';`TITLE=`arch -i386 osascript -e 'tell application "iTunes" to name of current track as string';`ALBUM=`arch -i386 osascript -e 'tell application "iTunes" to album of current track as string';`STATE=`arch -i386 osascript -e 'tell application "iTunes" to player state as string'`;echo "iTunes - $STATE - ($ARTIST - $TITLE) from: $ALBUM"