[ACCEPTED]-How to set a boolean value in an array object in a plist-plist

Accepted answer
Score: 12

This is how you do it Michael. I was looking 3 for the same thing, and I happened to come 2 across the answer. Thought I'd share. Example 1 shown below.

defaults write com.apple.dashboard layer-gadgets -array-add "<dict><key>32bit</key><false/></dict>";

These are the data types:

  • <string></string> - string
  • <false/><true/> - boolean
  • <real></real> - real
  • <integer></integer> - integer

More Related questions