User's Manual

Table Of Contents
Bome MIDI Translator: User's Manual 9 Actions
9.9 AppleScript
9.9.1 AppleScript Outgoing Action
You can invoke arbitrary AppleScript commands as an Outgoing Action.
Although you can edit the AppleScript action on Windows, it will
only execute on macOS.
The AppleScript code that you
enter in the Script text area
will be executed when this
Outgoing Action is triggered.
For documentation, you can
enter a Description text. It
does not change the
functionality.
If you want to access MIDI
Translator variables in your
script, use the Parameters
field (see section Passing
Variables directly to a script
below).
Optionally, you can specify a
(unique) Handler Name, if
you want to call this
AppleScript code from other
AppleScript sections. See
section Specifying a Unique
Handler Name below.
You can also define AppleScript handlers which you can call from anywhere:
define them in the Global AppleScript section of the Project Properties.
These handlers are available in all AppleScript actions (see Project Global
AppleScript Section below).
Passing Variables directly to a script
Any variables that you want to use in the script can be passed as
parameters. In the Parameters text field, enter all local and global variables
that you want to read in the script. For example, by specifying “pp, g0” as
Parameters, you will be able to use pp and g0 directly in the AppleScript.
See the screenshot above for an example.
(c) 2019 by Bome Software GmbH & Co. KG page 61