Skip to content

Instantly share code, notes, and snippets.

View marshallino16's full-sized avatar

Fernandez Anthony marshallino16

View GitHub Profile
@marshallino16
marshallino16 / applescript
Created December 13, 2016 13:16
Max OS - Switch output sound source applescript
set asrc to "__Your Source Name__"
tell application "System Preferences"
reveal anchor "output" of pane id "com.apple.preference.sound"
activate
tell application "System Events"
tell process "System Preferences"
select (row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound" whose value of text field 1 is asrc)