{"id":1293,"date":"2016-06-23T02:15:02","date_gmt":"2016-06-23T02:15:02","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1293"},"modified":"2016-06-23T02:15:02","modified_gmt":"2016-06-23T02:15:02","slug":"control-volume-on-os-x-from-the-terminal","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/control-volume-on-os-x-from-the-terminal\/","title":{"rendered":"Control Volume on OS X from the Terminal"},"content":{"rendered":"<p>This is helpful if you need to control the volume on a Mac that you have access to via SSH, or need to control it with a bash script.<\/p>\n<p>Basic syntax<\/p>\n<pre>sudo osascript -e \"set volume (0-10)\"<\/pre>\n<p>Turn volume off<\/p>\n<pre>sudo osascript -e \"set volume 0\"<\/pre>\n<p>Turn volume to 100%<\/p>\n<pre>sudo osascript -e \"set volume 10\"<\/pre>\n<p>Turn volume to 51%<\/p>\n<pre>sudo osascript -e \"set volume 5.1\"<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is helpful if you need to control the volume on a Mac that you have access to via SSH, or need to control it with a bash script. Basic syntax sudo osascript -e &#8220;set volume (0-10)&#8221; Turn volume off &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/control-volume-on-os-x-from-the-terminal\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[165,36,274,166],"class_list":["post-1293","post","type-post","status-publish","format-standard","hentry","category-os-x","tag-apple","tag-mac","tag-os-x","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1293"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1293\/revisions"}],"predecessor-version":[{"id":1295,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1293\/revisions\/1295"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}