Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to write a script to disable keys on Mac? Is there any script to do that?

share|improve this question
Can you please elaborate on what you are trying to do? What keys are you trying to disable? is it a particular application? Without context, the best answer you may receive is unplug the keyboard... – Benjamin Schollnick Dec 15 '09 at 14:49
haha well, its like disabling all the keys on the keyboard except for command key and few other keys. But it should be through a script, something like registries or vbscript which is used in windows environment. – user21513 Dec 16 '09 at 3:15

I believe you can get what you're looking for by remapping the key bindings. See Jacob Rus' key bindings tutorial for details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.