Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wrldwzrd89

macrumors G5
Original poster
Jun 6, 2003
12,110
77
Solon, OH
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:
Code:
Runtime.getRuntime().exec("defaults write net.worldwizard.Whatever Three\ Word\ Key -type value");
...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.)
 

foidulus

macrumors 6502a
Jan 15, 2007
904
1
Did you check to make sure that you can do the command

outside of Java? You may very well have a permissions issue. Also, did you check the return value of the execution, that may very well hold some useful info.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.