Last active
March 28, 2021 14:33
-
-
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)
This file contains hidden or 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 "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