Q: volume control from terminal
Hi Guys,
I want to write a small script so that I can have my computer connect and stream the radio from the internet when I wake up. It was fairly simple to open the radio stream and have it come on at the right time with crontab.
One thing I forgot, though, is that the volume is what ever it was when I left it last - this morning it was a bit deafening!! I expect there will be times when I mute the volume before bed too, which is also no good.
What I am after is a command line tool that will set the system volume to what I want it and not to what it was last set to. Does something exist to do this? I have searched google, and the mac osx hints and tips sites. I did find osascript, but that is an applescript tool and I don't really want to use that.
Thanks
I want to write a small script so that I can have my computer connect and stream the radio from the internet when I wake up. It was fairly simple to open the radio stream and have it come on at the right time with crontab.
One thing I forgot, though, is that the volume is what ever it was when I left it last - this morning it was a bit deafening!! I expect there will be times when I mute the volume before bed too, which is also no good.
What I am after is a command line tool that will set the system volume to what I want it and not to what it was last set to. Does something exist to do this? I have searched google, and the mac osx hints and tips sites. I did find osascript, but that is an applescript tool and I don't really want to use that.
Thanks
Mac OS X (10.4.6), iBook G4
Posted on Aug 3, 2006 11:52 AM