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


Click here to return to the 'Controlling iTunes from the Terminal (last post was ERROR)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Controlling iTunes from the Terminal (last post was ERROR)
Authored by: teahaile on Aug 30, '06 06:47:22AM
last entry was an error on my part....i meant to suggest the following:
            "vol"    ) echo "Changing iTunes volume level."
;
            if [ -z $2 ]; then
                break;
            fi
                vol=`osascript -e 'tell application "iTunes
" to sound volume as integer'`;
                if [ $2 = "up" ]; then
                    newvol=$(( vol+10 ));

                elif [ $2 = "down" ]; then
                    newvol=$(( vol-10 ));

                elif [ $2 -gt 0 ]; then
                    newvol=$2;
                fi

                osascript -e "tell application "iTunes" t
o set sound volume to $newvol";

            break ;;


[ Reply to This | # ]