Skip to content

Instantly share code, notes, and snippets.

@nickpunt
Created March 14, 2016 00:43
Show Gist options
  • Save nickpunt/30f76faf8c5c048f71d4 to your computer and use it in GitHub Desktop.
Save nickpunt/30f76faf8c5c048f71d4 to your computer and use it in GitHub Desktop.
tell application "System Preferences"
reveal pane id "com.apple.preference.trackpad"
end tell
tell application "System Events" to tell process "System Preferences"
-- Uncheck Zoom
tell tab group 1 of window "Trackpad"
click radio button "Scroll & Zoom"
click checkbox 2
end tell
end tell
delay 1
tell application "System Preferences"
reveal pane id "com.apple.preference.trackpad"
end tell
tell application "System Events" to tell process "System Preferences"
-- Recheck Zoom
tell tab group 1 of window "Trackpad"
click radio button "Scroll & Zoom"
click checkbox 2
end tell
end tell
quit application "System Preferences"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment