I would like to change the increaseContrast option within a script. I use this shell command:
defaults write com.apple.universalaccess increaseContrast -bool true
On Mojave I don’t have the permissions anymore and so I’ve to add
sudo or do shell script with administrator privileges.
The problem is, that unlike using the checkbox in the system preferences, running apps seem not to be informed about this changed preference. Is there a way to tell it to them so they change their appearance?
Is it possible with ASObjC? I’ve found NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification in the docs, but I don’t know how to use it.