wake from sleep

BNig niggemann at uni-wh.de
Tue Aug 11 18:54:33 EDT 2009

even shorter would be:
tell application "System Events" to return ("ScreenSaverEngine" is in (name
of every process))
returns true or false


BNig wrote:
> Tom,
> I dont know about shell but I found a way to query whether the screensaver
> is on or not. You would have to query the screensaver repeatedly with a
> script though.
> I found the basics on macscripter.net
> to try it out:
> --------------
> delay 4 -- to let the screensaver start
> tell application "System Events" to set v_proclist to name of every
> process
> set myScreen to false
> repeat with aProcess in v_proclist
> 	if (aProcess is in {"ScreenSaverEngine"}) then
> 		set myScreen to true
> 		say "yes, screen saver is on"
> 	end if
> end repeat
> if not myScreen then say "no screesaver is running"
> -----------------

View this message in context: http://www.nabble.com/wake-from-sleep-tp24917002p24927194.html
Sent from the Revolution - User mailing list archive at Nabble.com.

More information about the Use-livecode mailing list