Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/osascript
- # keyflip.sh
- # a quick applescript to toggle doublecommand alt/option swapping when using/not using a external MS
- # keyboard
- tell application "System Preferences"
- activate
- set current pane to pane "DoubleCommand"
- end tell
- tell application "System Events"
- tell process "System Preferences"
- tell window "DoubleCommand"
- click checkbox "Command Key acts as Option Key" of list 1
- click checkbox "Option Key acts as Command Key" of list 1
- click button "Activate"
- end tell
- end tell
- end tell
- tell application "System Preferences"
- quit
- end tell
Add Comment
Please, Sign In to add comment