This one seems interesting. I will play around with it. It would be
nice to have the awaking of the screensaver initiate the applescript/
rev app.
Tom McGrath III
Lazy River Software
[email protected]
iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html
On Aug 11, 2009, at 6:54 PM, BNig wrote:
Tom,
even shorter would be:
-------------------------
tell application "System Events" to return ("ScreenSaverEngine" is
in (name
of every process))
-------------------------
returns true or false
regards
Bernd
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.
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution