Re: Is there a "wake up" detector?
Re: Is there a "wake up" detector?
- Subject: Re: Is there a "wake up" detector?
- From: vectormation <email@hidden>
- Date: Tue, 2 Oct 2001 20:26:07 -0400
following my own post up...
The code below did nothing on OS 9.1 with ASLib 1.6.
Am I misunderstanding how this event should be applied?
~Phi
>
I wrote the following code :
>
>
>on run
>
> display dialog "Running - put me to sleep."
>
>end run
>
>
>
>on <<event pmgtwake>>
>
> display dialog "woke me up..."
>
>end <<event pmgtwake>>
>
>
(using real chevrons [option-slash & shift-option-slash])
>
>
and saved it as classic applet & stay open.
>
When I ran it, I got the dialog and then put my mac to sleep. On waking
>
the Mac up I expected the dialog, but nothing happened.
>
>
Mac OS 9.04, AppleScriptLib 1.4
>
>
I assume the ASLib is the problem - I'll try it on a 9.1/1.6 machine
>
later, but it looks like this is pretty new...
>
>
~Phi
>
>
>
>At 2:29 PM +0200 10/2/2001, Sander Tekelenburg wrote:
>
>>This works for me under OS 9.1 with AS 1.6
>
>>
>
>>on +event pmgtwake;
>
>> -- do stuff
>
>>end +event pmgtwak;
>
>>
>
>>[Beware of our mailing list's chevron mangler ;)]
>
>
>
>Dude, that rocks. Where did you find this documented?
>
>
>
>Jon
>
>_______________________________________________
>
>applescript-users mailing list
>
>email@hidden
>
>http://www.lists.apple.com/mailman/listinfo/applescript-users
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users