I'm trying to modify my settings for Textmate by modifying its plist. Here's what I've got so far:
defaults write com.macromates.textmate OakShellVariables -array-add '{value = "hello"; variable = "TM_HELLO";}'
This will add in a new shell variable for Textmate. I'm wanting to do this via the command line so that I can script it. The above works fine but I also want to set the enabled key (which is a boolean) to true. Unfortunately, I can't seem to figure out the correct syntax to achieve this. All my attempts result in setting the enabled key to be a string instead of a boolean. For example:
defaults write com.macromates.textmate OakShellVariables -array-add '{enabled = true ;value = "hello"; variable = "TM_HELLO";}