Skip to content

Instantly share code, notes, and snippets.

@vyruss
Last active December 8, 2023 19:23
Show Gist options
  • Save vyruss/f7e33bd802731f3c34f6fb991ee6b1d5 to your computer and use it in GitHub Desktop.
Save vyruss/f7e33bd802731f3c34f6fb991ee6b1d5 to your computer and use it in GitHub Desktop.
Reset audio balance on MacBook Pro (all recent Macs, really) - for the annoying OS X audio bug where your headphones or speakers balance is offset...
tell application "System Preferences"
activate
reveal anchor "output" of pane id "com.apple.preference.sound"
end tell
tell application "System Events"
delay 0.5
tell slider 1 of group 1 of tab group 1 of window "Sound" of process "System Preferences"
set value to 0.5
end tell
end tell
tell application "System Preferences"
quit
end tell
@FaultyJuggler
Copy link

I've been fighting with this and hunting for the right code, currently anything online similar giver

Syntax Error
System Settings got an error: AppleEvent handler failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment