Guest User

Untitled

a guest
Jul 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/usr/bin/osascript
  2.  
  3. # keyflip.sh
  4. # a quick applescript to toggle doublecommand alt/option swapping when using/not using a external MS
  5. # keyboard
  6.  
  7. tell application "System Preferences"
  8. activate
  9. set current pane to pane "DoubleCommand"
  10. end tell
  11.  
  12. tell application "System Events"
  13. tell process "System Preferences"
  14. tell window "DoubleCommand"
  15. click checkbox "Command Key acts as Option Key" of list 1
  16. click checkbox "Option Key acts as Command Key" of list 1
  17. click button "Activate"
  18. end tell
  19. end tell
  20. end tell
  21.  
  22.  
  23. tell application "System Preferences"
  24. quit
  25. end tell
Add Comment
Please, Sign In to add comment