Appendices
Page 93
Appendix 5
Using AppleScript
AppleScript offers Mac users a powerful way to automate
tasks and share information. PowerKey Pro extends the power
of AppleScript in two important ways. You can schedule
scripts with PowerKey Events, and you can even control
PowerKey Pro itself with scripts.
The “Extras” folder on the PowerKey Pro master disk contains
several useful examples showing how to use AppleScript with
PowerKey Pro.
In addition to AppleScript, PowerKey Pro works with any OSA-
compliant scripting language, such as UserLand Frontier.
Running AppleScripts in Events
The PowerKey software allows you to run a script in any
Event. You can use this ability to run scripts on a time sched-
ule, or in response to system activity (for example, when the
phone rings or you type a keystroke).
To use a script, save it as a “compiled script” in the Script
Editor. You may find it handy to place scripts in the PowerKey
Folder (in your Preferences folder), but they can be placed
anywhere on your hard disk. To run the script, create an
Execute Script Action in the desired Event(s).
If your script opens a dialog box to display or request information,
you will not be able to run it as a compiled script. This is because the
PowerKey Extension runs as a background-only application, which
cannot draw windows. To run such a script, save it as an “applica-
tion” in the Script Editor, and run it with the Open File Action.
Содержание PowerKey Pro 200
Страница 6: ...Page 6 1 Introduction...
Страница 10: ...Page 10 1 Introduction...
Страница 42: ...Page 42 3 Using PowerKey...
Страница 108: ...Page 108 Appendices...