echo"\tnext|previous\tplay next or previous track"
echo"\tnext|previous\tplay next or previous track"
echo"\tshuf|shuffle [on|off|toggle]\tSet shuffled playback. Default: toggle. Note: toggle doesn't support the MiniPlayer."
echo"\tshuf|shuffle [on|off|toggle]\tSet shuffled playback. Default: toggle. Note: toggle doesn't support the MiniPlayer."
echo"\tvol [0-100|up|down]\tGet or set the volume. 0 to 100 sets the volume. 'up' / 'down' increases / decreases by 10 points. No argument displays current volume."
echo"\tvol [0-100|up|down]\tGet or set the volume. 0 to 100 sets the volume. 'up' / 'down' increases / decreases by 10 points. No argument displays current volume."
echo"\tplaying|status\tShow what song is currently playing in iTunes."
echo"\tplaying|status\tShow what song is currently playing in Music."
echo"\tplaylist [playlist name]\t Play specific playlist"
echo"\tplaylist [playlist name]\t Play specific playlist"
echo"\thelp\tshow this message and exit"
echo"\thelp\tshow this message and exit"
return0
return0
@ -322,7 +334,7 @@ EOF
return1
return1
;;
;;
esac
esac
osascript -e "tell application \"iTunes\" to $opt"
osascript -e "tell application \"$APP_NAME\" to $opt"