osx - How to set a boolean value in an array object in a plist -
i'm trying modify settings textmate modifying plist. here's i've got far:
defaults write com.macromates.textmate oakshellvariables -array-add '{value = "hello"; variable = "tm_hello";}'
this add in new shell variable textmate. i'm wanting via command line can script it. above works fine want set enabled key (which boolean) true. unfortunately, can't seem figure out correct syntax achieve this. attempts result in setting enabled key string instead of boolean. example:
defaults write com.macromates.textmate oakshellvariables -array-add '{enabled = true ;value = "hello"; variable = "tm_hello";}
this how michael. looking same thing, , happened come across answer. thought i'd share. example shown below.
defaults write com.apple.dashboard layer-gadgets -array-add "<dict><key>32bit</key><false/></dict>";
these data types:
<string></string>
- string<false/><true/>
- boolean<real></real>
- real<integer></integer>
- integer
Comments
Post a Comment