Created
July 11, 2020 03:18
-
-
Save mswieboda/89970d9fd3cbf27fab5675088dcb0603 to your computer and use it in GitHub Desktop.
macOS: Quickly toggle "Tap to click" for the Trackpad by using AppleScript
This file contains hidden or 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" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" | |
delay 1 | |
click the menu item "Trackpad" of the menu "View" of menu bar 1 | |
delay 1 | |
click the radio button "Point & Click" of the first tab group of window "Trackpad" | |
click checkbox 3 of tab group 1 of window "Trackpad" | |
end tell | |
end tell | |
tell application "System Preferences" | |
quit | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment