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


shuffling | 35 comments | Create New Account
Click here to return to the 'shuffling' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
shuffling
Authored by: deef on Feb 24, '05 07:46:46PM
To enable shuffling add the following lines to the while command in David Schlosnagle's script above:

"shuf" ) echo "Shuffle is ON.";
osascript -e 'tell application "iTunes" to set shuffle of current playlist to 1';
break ;;

"nosh" ) echo "Shuffle is OFF.";
osascript -e 'tell application "iTunes" to set shuffle of current playlist to 0';
break ;;


You can also add the following to the showHelp section to display these commands in the list of options:

echo " shuf = Shuffle current playlist";
echo " nosh = Do not shuffle current playlist";


[ Reply to This | # ]