Created
August 29, 2017 06:31
-
-
Save Ryderpro/4c05eba7cae1ea44c7ec6a1d3f49c9c0 to your computer and use it in GitHub Desktop.
Toggle Built in Trackpad
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 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