Page 94
Appendices
Controlling PowerKey Pro with AppleScript
In addition to running scripts from the PowerKey software,
you can control PowerKey Pro directly from scripts. To
control PowerKey, place a tell block in your script as
follows:
You can then place PowerKey scripting commands inside
this block.
The PowerKey software defines several classes of objects for
use by AppleScripts. A unit is a single PowerKey Pro, which
contains several outlets and events. Units and outlets may
be specified by name or number, but events should be
specified only by name. You must specify a unit even if you
only have one PowerKey Pro connected to your computer.
For more information on PowerKey classes, use the “Open
Dictionary” command in the Script Editor’s File menu, and
open the PowerKey Extension (not Editor) in your system’s
Extensions folder.
Setting Outlets
To set an outlet’s state, you set the level property of a unit’s
outlet
to 0 (for off) or 100 (for on).
You must specify both the outlet and the unit, even if you
only have one PowerKey Pro. You can refer to outlets and
units by number or name.
Содержание PowerKey Pro 200
Страница 6: ...Page 6 1 Introduction...
Страница 10: ...Page 10 1 Introduction...
Страница 42: ...Page 42 3 Using PowerKey...
Страница 108: ...Page 108 Appendices...