• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a "wake up" detector?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a "wake up" detector?


  • Subject: Re: Is there a "wake up" detector?
  • From: vectormation <email@hidden>
  • Date: Tue, 2 Oct 2001 15:05:12 -0400

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


  • Prev by Date: RE: Move .ps files to Distiller Watched Folder?
  • Next by Date: Re: How to add "\n" to text?
  • Previous by thread: Re: Is there a "wake up" detector?
  • Next by thread: Re: Is there a "wake up" detector?
  • Index(es):
    • Date
    • Thread