Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
macOS: Quickly toggle "Tap to click" for the Trackpad by using AppleScript
tell application "System Preferences"
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"
end tell

This comment has been minimized.

Copy link
Owner Author

@pugson pugson commented May 16, 2018

Here's an Alfred workflow:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment