Skip to content

Instantly share code, notes, and snippets.

@dennislapchenko
Created January 22, 2017 14:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennislapchenko/99d5de9deb6db2539660227489795836 to your computer and use it in GitHub Desktop.
Save dennislapchenko/99d5de9deb6db2539660227489795836 to your computer and use it in GitHub Desktop.
OS X global shortcut for making f1-12 keys usable without FN key and reverting it back
tell application "System Preferences"
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
end tell
tell application "System Events" to tell process "System Preferences"
click checkbox 1 of tab group 1 of window 1
end tell
quit application "System Preferences"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment