up vote 3 down vote favorite
share [g+] share [fb]

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?

link|improve this question

62% accept rate
feedback

1 Answer

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.

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

Your Answer

 
or
required, but never shown

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