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

Click here to return to the 'How do we set the volume via command line?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How do we set the volume via command line?
Authored by: leamanc on Apr 16, '09 06:27:08PM

The only way I know of to do this is by calling AppleScript via the osascript command:

sudo osascript -e "set Volume 0"
sudo osascript -e "set Volume 10"

The first line will set your Mac's sound to mute. The last one represents maximum volume. You can use any whole number in between. I believe you can use decimals (i.e., 6.5) for finer-grained control also.

[ Reply to This | # ]