09/02/11 21:30:05

Precise Volume Control in Lion

I found this tip on Mac OS X Hints that suggests to use an AppleScript to precisely control the system volume. (Which is gone in Lion. This feature used to be available pressing ⇧⌃⌥F11 or ⇧⌃⌥F12.)

Now you can use an AppleScript:

set currentVolume to output volume of (get volume settings)
set volume output volume (currentVolume + 2)

I would add this line, which plays the standard volume “plop” sound after changing volume:

do shell script "afplay /System/Library/LoginPlugins/BezelServices.loginPlugin/Contents/Resources/volume.aiff"

I’m executing this script, obviously, with Keyboard Maestro, but you can easily set this up with Alfred as well.