Created
June 28, 2019 11:27
-
-
Save jamland/2c0476fc91f1a9f3e8da066584ebe071 to your computer and use it in GitHub Desktop.
Toggle Mono/Stereo Audio Output. MacOS 10.14
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
-- Tested on MacOS 10.14 | |
-- May not work for versions below or above | |
tell application "System Preferences" | |
reveal anchor "Hearing" of pane id "com.apple.preference.universalaccess" | |
end tell | |
tell application "System Events" | |
tell application process "System Preferences" | |
-- set frontmost to true | |
tell window "Accessibility" | |
##--> pre 10.9 set monoStereoCheckbox to checkbox 2 of group 1 | |
set monoStereoCheckbox to checkbox "Play stereo audio as mono" of group 1 | |
tell monoStereoCheckbox to click | |
end tell | |
end tell | |
end tell | |
if application "System Preferences" is running then | |
tell application "System Preferences" to quit | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment