Control the volume of your Mac from the Terminal

Recently when I was sitting on my couch in the living room, I have realised that the iTumes running on my iMac (which is in a different room) is playing bit too loud. As it was too comfortable to get up and go to the machine to reduce the volume I found an easy method using the OS X terminal. Here is how I did it.

Connected to the iMac using ssh from my laptop.

Entered the following code

osascript -e 'set volume output volume 10'

Here the volume scale is from 0 to 100.

That’s all.

Share and Enjoy:
  • Digg
  • del.icio.us
  • MisterWong
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>