Page 90
Appendices
To use this AppleScript, save it in the Script Editor as a “com-
piled script.” Edit any Events that shut down or restart the
computer, and place an Execute Script Action before the Shut
Down Computer or Restart Actions. It may also be a good idea
to place a Wait Action in the middle, to make sure that the
script is finished before attempting to shut down or restart.
Monitoring Custom Applications
Custom applications, such as databases or interactive presen-
tations, can “ping” the PowerKey software in much the same
way that the PowerKey software pings the hardware. You can
use the When Timer Expires Trigger to restart the system when
your application crashes or otherwise fails to respond.
You must design your application to periodically send an
Apple Event to the PowerKey software, telling it to set the
User Timer to, for example, 300 seconds. When your applica-
tion stops resetting the User Timer, it will continue counting
down. If the User Timer reaches zero, this Event will restart the
system. See Appendix 5, Using AppleScript, for more informa-
tion.
Содержание PowerKey Pro 200
Страница 6: ...Page 6 1 Introduction...
Страница 10: ...Page 10 1 Introduction...
Страница 42: ...Page 42 3 Using PowerKey...
Страница 108: ...Page 108 Appendices...