I'm looking for a not applescript way to change the system volume on Mac OS X programmatically. I just couldn't find a solution. Anyone any ideas?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Take a look at this class:
https://github.com/InerziaSoft/ISSoundAdditions
It can change system volume and make use of CoreAudio API.
An example of usage should look like this:
[NSSound setSystemVolume:0.5]