With command-option-control-8 I can invert the screen but in a script this doesn’t seem to work. Ideas on how I can get this to work in a script?
tell application "System Events"
keystroke "8" using {command down, option down, control down}
end tell