OS X screen saver - somewhat off topic

Wouter wouter.abraham at pi.be
Tue Apr 27 06:52:35 EDT 2004


On 27 Apr 2004, at 11:20, use-revolution-request at lists.runrev.com wrote:

> Message: 6
> Date: Tue, 27 Apr 2004 17:21:33 +1000
> From: Sarah Reichelt <sarahr at genesearch.com.au>
> Subject: Re: OS X screen saver - somewhat off topic
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <830FBDB1-981B-11D8-BBF1-0003937A97B8 at genesearch.com.au>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Sorry, it doesn't work if the screen saver has come on after it's time
> setting. In fact it is exactly the same as the AppleScript. You can see
> it happening as the screens saver goes off for about half a second,
> then comes straight back on again :-( Most frustrating as it seems that
> it is ALMOST working.
>
> Thanks for all your help anyway,
> Sarah
>
>>>>
>>> Like the AppleScript, it works fine so long as the screen saver time
>>> limit hasn't been reached, now to test if it has.
>>>
>>> For anyone who is interested, the script is slightly different to the
>>> one Andre suggested:
>>>   get shell("ps -auxc | grep " & quote & "ScreenSaverE" & quote)
>>>   if it is empty then exit to top
>>>   put word 2 of it into pID
>>>   get shell ("kill " & pID)
>>
>> Sarah
>>
>> If it works, then Transcript now supports the kill command for OS X,
>> including nominating the signal type (including 9). You are sending
>> sig 1 or 15 (I forget which) in the above.
>>
>> regards
>> David
>
>

This works over here:

on wakeUp
   put "tell application " & quote & "Finder" & quote & cr \
       & "quit application " &quote& "ScreenSaverEngine" & quote & cr & 
"end tell" into a
   do a as applescript
end wakeUp


HTW
Greetings,
WA



More information about the use-livecode mailing list