Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Axel Luttgens <email@hidden>
- Date: Sat, 16 Nov 2002 13:10:35 +0100
Donald Hall wrote:
Hello all,
Someone posted the following in a Mac newsgroup last week:
[snip]
I want to do something similar, so I tried the following stay open
script application:
-- wake test------------
on +event pmgtwake;
activate
say "Waking Up!"
display dialog "Waking up!"
end +event pmgtwake;
on idle
return 1
end idle
-----------------------------
I put my computer (PM G4, OS 10.1.3, AS 1.8.1) to sleep from the Apple
menu, then after it had apparently gone to sleep, I pushed the power
button to wake it up. My application produced no output. Technote 1190
says that all applications that respond to higher level events receive
this event whenever the Mac is waking from sleep, but it seems my script
application did not. (Note that in the SIZE resource, "high level event
aware" is set to '1'.)
Can anyone help?
Just from memory: TN 1190 was issued at the time of MacOS 9, wasn't it?
Could it be that the event isn't (yet) implemented in MacOS 10?
I tried here anyway (MacOS 10.1.5), without success too.
(as a side note, I don't think the idle handler is needed for the
purpose; one just needs a stay open, not periodic runs)
HTH,
Axel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >(no subject) (From: Donald Hall <email@hidden>) |