I am currently trying to create a Terminal shell that adds a boolean key called “disabled” with a true value to an existing plist.
So far I have defaults write "/System/Library/LaunchAgents/com.apple.AppStoreUpdateAgent" disabled -bool true
I am I setting the boolean value correctly, or should I not have the -bool?
Should “disabled” be in quotes?
defaults write /System/Library/LaunchAgents/com.apple.AppStoreUpdateAgent disabled -bool trueshould be correct.disableddoesn’t need to be in quotes and-bool trueshould work, but as @MichaelDautermann mentioned, you would need to run it as root.You could also unload the job with
launchctl unload -w /System/Library/LaunchAgents/com.apple.AppStoreUpdateAgent.plist.