I would like to adjust the system audio volume in OSX from a python script. This question about implementing keyboard shortcuts tells me how to do it in applescript, but I\
Use appscript to control the StandardAdditions scripting addition set volume command:
set volume
>>> from osax import * >>> import time >>> sa = OSAX() >>> for i in range(50): ... sa.set_volume(i*2) ... time.sleep(1) ... >>>