Language Guide
CHAPTER 8
Handlers
230 Subroutine Definitions and Calls
subroutineParamLabel is one of the following labels: above, against, apart
from, around, aside from, at, below, beneath, beside, between, by,
for, from, instead of, into, on, onto, out of, over, thru (or through),
under. These labels are the only labels that can be used without the special
label given. As in other commands, each label must be unique among
the labels for the subroutine (that is, you cannot use the same label for more
than one parameter).
paramVariable (an identifier) is a parameter variable for the actual value of a
parameter. You use this identifier to refer to the parameter in the body of
the subroutine.
label is any parameter label. This can be any valid AppleScript identifier. You
must use the special label given to specify parameters whose labels are not
among the labels for subroutineParamLabel.
variable is an identifier for either a global or local variable that can be used in
the handler. The scope of a local variable is the handler. You cannot refer to a
local variable outside the handler. The scope of a global variable can extend to
any other part of the script, including other handlers and script objects. For
detailed information about the scope of local and global variables, see “Scope
of Script Variables and Properties,” which begins on page 252.
statement is any AppleScript statement.
NOTES
For examples of subroutines with labeled parameters, see page 232.
Subroutine Call, Labeled Parameters 8
A subroutine call for a subroutine with labeled parameters lists parameters
other than the direct parameter in any order, using the labels in the subroutine
definition to identify the parameter values.