This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Based on the AppleScript posted here: https://secure.macscripter.net/viewtopic.php?pid=190067 | |
tell application "System Preferences" | |
activate | |
reveal anchor "output" of pane id "com.apple.preference.sound" | |
delay 0.5 -- If you get an error, it's possible this delay isn't long enough. | |
end tell | |
tell application "System Events" | |
tell slider 1 of group 1 of tab group 1 of window 1 of process "System Preferences" | |
set value to 0.5 | |
end tell |