Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I'm trying to remap CapsLock to Control Programmatically.

I figured out the edits that need to be done to a plist file (.GlobalPreferences.[MAC ADDRESS].plist)

The point is that changes I make to that file apply only after logging in/out, while if I change it through the preference pane it applies immediately.

Clearly there is some process/service that needs to be restarted/notified.

But how can I figure out which one it is? Do you know or have some idea on how to tackle the problem?

share|improve this question
up vote 2 down vote accepted

You're doing something which would be considered unsupported at best. There is no acceptable means of notifying the operating system that you've modified one of its preferences files behind its back and there probably never will be.

What you can do is either make the change through AppleScript, write your own CGEventTap or live with restarting.

share|improve this answer
specifically upvoted for the suggestion to use AppleScript. – Chris Cleeland Nov 16 '09 at 22:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .