Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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
1  
specifically upvoted for the suggestion to use AppleScript. –  Chris Cleeland Nov 16 '09 at 22:36

Your Answer

 
discard

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.