Skip to content

Instantly share code, notes, and snippets.

@oeken
Last active March 28, 2021 14:33
Show Gist options
  • Select an option

  • Save oeken/86e1dd95b7f8e8cdc95f41d74bc9e092 to your computer and use it in GitHub Desktop.

Select an option

Save oeken/86e1dd95b7f8e8cdc95f41d74bc9e092 to your computer and use it in GitHub Desktop.
This AppleScript toggles the standard function keys (F1, F2 etc. vs mac system keys)
tell application "System Preferences"
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
end tell
delay 0.3
tell application "System Events" to tell process "System Preferences" to tell window 1
click checkbox "Use F1, F2, etc. keys as standard function keys" of tab group 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