PDA

View Full Version : Flash Screen With AppleScript?




Darkroom
Jul 23, 2008, 11:46 PM
have no idea, can't seem to find the answer anywhere... anyone?


tell application "system events"
flash screen //??
end tell


[EDIT] by "flash screen" i mean: sys prefs > universal access > hearing > flash screen



Darkroom
Jul 24, 2008, 09:50 PM
is there really no way to flash the screen with applescript? :confused:

lee1210
Jul 24, 2008, 10:14 PM
I tried looking in to this, and the best I could find was to make a sound file that was actually just a broken softlink (I think that was the situation), and when you told the system to play it, it would blink the screen instead.

-Lee

Darkroom
Jul 25, 2008, 04:41 PM
I tried looking in to this, and the best I could find was to make a sound file that was actually just a broken softlink (I think that was the situation), and when you told the system to play it, it would blink the screen instead.

-Lee

i just read about this thanks to your post... i didn't even know about this "feature" (or whatever) for mac os x... it's interesting... my custom Mail.app sound never goes off for some reason when i receive new mail, i could use this instead... and also i hope this works for my method... i guess i'll have to get the fileManager to write a "sounds" folder in the library if one doesn't exist and write some file (apparently we can set a text file as a sound in the sounds folder to make the screen flash)...

[EDIT] oh, apparently it doesn't work with mail.app... oh well, no big deal... hopefully Snow Leopard will sort out the mail.app bugs with custom sound notifications.

[EDIT] aaaaand none of this seems to work at all in 10.5... back to square one...