Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-12-2006, 04:01 PM   #1
neuralstatic
Triple-A Player
 
Join Date: Jun 2002
Posts: 53
defaults write to child property

i can't find this online anywhere.

i need to set a preference property for all users via a command line.
unfortunately it's a property that is a child of another

it's for com.apple.mail.plist, and this approximates how it would look in the plist editor
MailAccounts
__1
____CachePolicy String OFF


defaults write com.fake.fake MailAccounts '{ 1 = { CachePolicy = OFF; }; }'
this works b ut wipes out other entries under the "1" child.

i think i need to kill the "=" sign, but i can't get the syntax.
neuralstatic is offline   Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.