ControlPlane
ControlPlane copied to clipboard
Set System Volume to a percentage
I'd like to be able to set the system volume (as opposed to mute) in an action.
This can be accomplished via Terminal with the command: osascript -e "set Volume n" where n is a float value between 0-7
I was just looking to see if this was an option.
I would also love this. For the time being, I am using an external script:
#!/bin/bash
if [[ -z $1 || ! $1 =~ ^[0-9]+$ ]]; then
exit 1
fi
osascript -e "set volume output volume $1"
In ControlPlane you specify the volume percentage via the pipe "|" symbol: