Change System Volume from Command Line on Mac OS
Oftentimes the awesome GUI applications we love are simply gloss over a command line functionality. While I do love a visual app, it's always good to know how to do things from command line, if only for the sake of automation. I've covered loads of command line secrets, most notably Mac Camera Access, so I wanted to figure out if I could control volume from command line.
Change Mac System Volume
The secret to changing Mac system volume from command line is through
# Max volume
sudo osascript -e "set Volume 10"
sudo osascript -e "set Volume 0"
# 50% volume
sudo osascript -e "set Volume 5"
Values range from
0 (muted) to
10 (maximum volume). Note that you don't get to see a nice volume change indicator -- the volume simply changes without any feedback.
Two years ago I documented my struggles with Imposter Syndrome and the response was immense. I received messages of support and commiseration from new web developers, veteran engineers, and even persons of all experience levels in other professions. I've even caught myself reading the post...
I was inspired when I first saw Addy Osmani's original ShineTime blog post. The hover sheen effect is simple but awesome. When I started my blog redesign, I really wanted to use a sheen effect with my logo. Using two HTML elements and...
The news items...