|
|
Add playlist control to the script
One more suggestion. Add the ability to choose a playlist. I added an itunes playlist "name of playlist" command. Here is the code I added to the original script. Add
echo " playlist "@" = Play iTunes' playlist named @";
to the showHelp and add
"playlist" ) echo "Changing iTunes playlist.";
osascript -e 'tell application "iTunes"' -e "set the new_playlist to \"$2\" as string" -e "play playlist new_playlist" -e "end tell";
break ;;
in the main body of the script. I put it after the vol command.
Add playlist control to the script (correction)
The quotes around $2 need to be escaped as
\"$2\".
Add playlist control to the script
another suggestion:
For the help:
And the code for showing available playlists, if there is no parameter given.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|