Last active
June 12, 2017 09:11
-
-
Save nickpunt/18911a0f9ee389155e44 to your computer and use it in GitHub Desktop.
This file contains 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
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 | |
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 | |
end tell | |
quit application "System Preferences" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this script! I found that zooming works after running this script, but that swiping with two fingers to navigate (between pages, in Mail.app, Calendar, etc.) was still broken. For this, I added extra clicks on checkbox 1 in the "More Gestures" tab. This seems to work for now: