How to set audio volume in Mac using shell

Like afplay, Mac OS provides another useful utility to change audio volume using shell script. This utility or command is known as osascript. Earlier, osascript command used to work only with AppleScript but later on this command was made available to be used with any Open Source Architecture Script such as shell. Actually osascript allows to execute any script, not just to change audio volume.

Below is how osascript can be used to change the audio volume in mac using shell:

Here 7 is just a number and any value can be given here.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">