Visual alert

I would like my script to do “visual” alert. Maybe flash screen or inverting it for split second. Is this possible with AppleScript?

Hi,

try this:


tell application "System Events"
	repeat 2 times
		key code 28 using {command down, control down, option down}
		delay 0.2
	end repeat
end tell