Skip to content

Instantly share code, notes, and snippets.

@sooop
Created March 28, 2014 13:25
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sooop/9832628 to your computer and use it in GitHub Desktop.
tell application "System Preferences"
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
tell application "System Events"
click checkbox 1 of tab group 1 of window 1 of application process "System Preferences"
end tell
end tell
if application "System Preferences" is running then
tell application "System Preferences" to quit
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment