Skip to content

Instantly share code, notes, and snippets.

@david-crespo
Created October 25, 2016 17:50
Show Gist options
  • Save david-crespo/a694b764af020c52573eae25ec70fc1a to your computer and use it in GitHub Desktop.
Save david-crespo/a694b764af020c52573eae25ec70fc1a to your computer and use it in GitHub Desktop.
Toggle natural scrolling on MacOS
try
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.trackpad"
end tell
tell application "System Events"
tell process "System Preferences"
click radio button "Scroll & Zoom" of tab group 1 of window "Trackpad"
click checkbox 1 of tab group 1 of window "Trackpad"
end tell
end tell
tell application "System Preferences"
quit
end tell
end try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment