Skip to content

Instantly share code, notes, and snippets.

@Ryderpro
Created August 29, 2017 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryderpro/4c05eba7cae1ea44c7ec6a1d3f49c9c0 to your computer and use it in GitHub Desktop.
Save Ryderpro/4c05eba7cae1ea44c7ec6a1d3f49c9c0 to your computer and use it in GitHub Desktop.
Toggle Built in Trackpad
tell application "System Preferences"
reveal anchor "Mouse" of pane id "com.apple.preference.universalaccess"
activate
tell application "System Events"
tell process "System Preferences"
click checkbox 3 of window 1
set valueCheckBox to value of checkbox 3 of window 1
end tell
end tell
quit
end tell
if valueCheckBox = 1 then
display notification "Ignoring built-in trackpad while mouse or wireless trackpad is present."
else
display notification "Built-in trackpad is now active."
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment