ControlPlane icon indicating copy to clipboard operation
ControlPlane copied to clipboard

Set System Volume to a percentage

Open adrianluff opened this issue 10 years ago • 2 comments

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

adrianluff avatar May 13 '14 15:05 adrianluff

I was just looking to see if this was an option.

geoffreywiseman avatar Jul 15 '14 15:07 geoffreywiseman

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: image

magicdude4eva avatar Aug 21 '17 05:08 magicdude4eva