Skip to content

Instantly share code, notes, and snippets.

View amlestin's full-sized avatar

Arnold Lestin amlestin

View GitHub Profile
amlestin / balance.scpt
Created March 31, 2022 19:04 — forked from masnick/balance.scpt
macOS: Set sound output balance to middle
View balance.scpt
-- Based on the AppleScript posted here:
tell application "System Preferences"
reveal anchor "output" of pane id ""
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