Hello Cormac,
A couple of things to try ...
First, whether it's overkill or not, I always fully address the plist I want to write to: defaults write /Library/Preferences/com.domain.appname ....
Second, does the choice of quoting matter? (Probably not since you say this works when you run it manually) defaults write /Library/Preferences/com.domain.appname installertestkeyPOSTFLIGHT 'installerteststringPOSTFLIGHT' (no quotes for the property, single quotes for the value)
Finally, have you tried explicitly setting the value type? defaults write /Library/Preferences/com.domain.appname installertestkeyPOSTFLIGHT -string 'installerteststringPOSTFLIGHT' `man defaults` lists: -string, -data, -int, -float, -bool, -date, -array, and -dict
I don't know if any of those will help for certain, but they're avenues I'd explore if I were having this trouble.
Best wishes, Scott -- Scott Russell
IT Support Engineer Arts & Letters Computing, Distributed Support Services, Office of Information Technologies, University of Notre Dame Instructor of Horn, University of Notre Dame and Saint Mary's College Assistant Horn, South Bend Symphony Orchestra
234 Decio Hall 574-631-7021
On Mar 15, 2007, at 7:21 AM, Cormac Daly wrote: defaults write com.domain.appname "installertestkeyPOSTFLIGHT" "installerteststringPOSTFLIGHT"
|