Screen flash

Is it possible to have AS trigger a screen effect, like a flash, or some other weird effect?

Yes, quite simple with this ;):wink:

tell application "System Preferences" to reveal anchor "Hearing" of pane id ""
tell application "System Events" to click button 1 of tab group 1 of window 1 of process "System Preferences"
quit application "System Preferences"

I guess, it’s possible to trigger an application which creates the effect

even better yet…

If you are running Tiger you can perform the keystroke CMD-Option-Control 8 a few times.

Sweet butter … but I can’t get this:

tell application "System Events"
	keystroke "8" using {command down, control down, option down}
end tell

to work

In the hearing pane of the Universal Access preferences pane you have to check “Flash the screen when an alert sound occurs”, and “Enable access for assistive devices” has to be checked as well.

Try something like this, AF:

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

Is there any way to make a screen flash like Photo booth when you take a picture???