Multi level defaults write value as integer instead of string
1
vote
0
answers
323
views
From https://apple.stackexchange.com/questions/423115/macos-defaults-write-data/441755
I'm looking to add as above.
Basically, trying to achieve https://support.google.com/chrome/a/answer/7591084#updatepolicysettings&zippy=%2Cturn-off-updates%2Csample-property-list
I managed to add it like
defaults write /Users/samson/Library/Preferences/com.google.Keystone.Agent.plist '{"updatePolicies" = {global = {UpdateDefault = 4;};};}'
But the value 4 adds it as a string instead of integer like below.
updatePolicies
global
UpdateDefault
3
How do I add it as an integer instead ?
Also, this erases the existing plist contents and adds only what I added in above command? How do I add the above, in addition to what is already in the plist ?
Thanks for the help in advance!
Asked by Arun Chatterjee
(11 rep)
May 30, 2022, 08:47 PM
Last activity: May 30, 2022, 08:51 PM
Last activity: May 30, 2022, 08:51 PM