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.
Kids these days, I tell ya. All they care about is the technology. The video games. The bottled water. Oh, and the texting, always the texting. Back in my day, all we had was...OK, I had all of these things too. But I still don't get...
I was one of the biggest fans of flexbox before it hit but, due to being shuffled around at Mozilla, I never had the chance to use it in any practice project; thus, flexbox still seems like a bit of a mystery to me. This greatly...
Google recently introduced an interesting effect to their homepage: the top left and top right navigation items don't display until you move your mouse or leave the search term box. Why? I can only speculate that they want their homepage as...