Is there any way to do this? I'm willing to limit this functionality to the Mac OS X platform, if that turns out to be necessary. If a library exists for this purpose, I'd strongly prefer that it be open-source. If using the "defaults" command is the way to go (which is the approach I tried), how exactly do you get this working?
I've tried:
...but nothing gets written. (Note: The string as given won't work - look at the man page for defaults for the syntax. The syntax I used is rather generic.)
I've tried:
Code:
Runtime.getRuntime().exec("defaults write net.worldwizard.Whatever Three\ Word\ Key -type value");