Skip to content

Instantly share code, notes, and snippets.

@jeanpaul
Forked from nickpunt/TrackpadFix (Forcetouch).scpt
Last active August 13, 2016 08:33
Show Gist options
  • Save jeanpaul/f0e227d08ec27b5a17363c9056e1be75 to your computer and use it in GitHub Desktop.
Save jeanpaul/f0e227d08ec27b5a17363c9056e1be75 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 lookup & data detectors
tell tab group 1 of window "Trackpad"
click radio button "Point & Click"
click checkbox 1
end tell
-- Uncheck Zoom
tell tab group 1 of window "Trackpad"
click radio button "Scroll & Zoom"
click checkbox 2
end tell
-- Uncheck Swipe between pages
tell tab group 1 of window "Trackpad"
click radio button "More Gestures"
click checkbox 1
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 lookup & data detectors
tell tab group 1 of window "Trackpad"
click radio button "Point & Click"
click checkbox 1
end tell
-- Recheck Zoom
tell tab group 1 of window "Trackpad"
click radio button "Scroll & Zoom"
click checkbox 2
end tell
-- Recheck Swipe between pages
tell tab group 1 of window "Trackpad"
click radio button "More Gestures"
click checkbox 1
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