I want to set the output volume to 10 using a keystroke or just running the script then pressing the same keystroke or running the script again to set it back to the variable prior to setting it to 10. Similar to how the mute function works but instead of muting setting it to a low volume instead. Cheers.
Here are the dictionaries if any help.
set volume‚v : Set the sound output and/or input volume
set volume [number] : the sound output volume, a real number from 0 to 7 (This parameter is deprecated; if specified, all other parameters will be ignored.)
[output volume integer] : the sound output volume, an integer from 0 to 100
[input volume integer] : the sound input volume, an integer from 0 to 100
[alert volume integer] : the alert volume, an integer from 0 to 100
[output muted boolean] : Should the sound output be muted?
get volume settings‚v : Get the sound output and input volume settings
get volume settings
→ volume settings : a record containing the sound output and input volume settings
volume settings‚n : Reply record for the ˜get volume settings’ command
properties
output volume (integer, r/o) : the sound output volume
input volume (integer, r/o) : the sound input volume
alert volume (integer, r/o) : the alert volume (as a percentage of the output volume)
output muted (boolean, r/o) : Is the sound output muted?