Entry and Items
An entry represents a correspondence between
an operation of MIDI device and a script.
You can save a list of entries into a disk file.
Each entry includes the following items.
Enabled: A button that indicates whether the script should
be executed or not.
Src.: A number assigned to a MIDI device to indicate the device
when more than one devices are connected to the computer.
You can know the numbers from the window for
Selecting MIDI Sources.
Knob/Key: Knob or key to be assigned.
Application: The name of target application for script.
Context: The target object in the application.
Command: The script to be executed.
The program of AppleScript to be executed is bound by
tell application "Application name"
and end tell.
If the context is not empty, a pair of
tell Context and end tell
is added in the inside.
If the command includes %f,
it is replaced by a variable that represents
the value of key velocity or knob position.
min: The value to be embedded in the script when key velocity is the weakest or
knob position is the lowest.
max: The value to be embedded in the script when key velocity is the strongest or
knob position is the highest.