def get_output_volume():
 cmd = 'osascript -e "get output volume of (get volume settings)"'
 call = __salt__['cmd.run_all'](cmd, output_loglevel='debug', python_shell=False)
 _check_cmd(call)
 return call.get('stdout')

def get_output_volume ( ) : cmd = 'osascript -e "get output volume of (get volume settings)"' call = __salt__ [ 'cmd.run_all' ] ( cmd , output_loglevel = 'debug' , python_shell = False ) _check_cmd ( call ) return call . get ( 'stdout' )
get the output volume cli example: .