Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
56 Command Definitions
PARAMETERS
referenceOrString
A reference of the form file nameString or alias nameString
that specifies a script file, or a string that consists of a valid
script.
Class: Reference or string
listOfParameters
A list of parameters to be passed to the Run handler of the target.
Class: List
scriptingComponent
The name of the scripting component to use when running
the script.
Class: String
RESULT
Value returned by script that is run.
EXAMPLES
This example runs the script beep 3, causing the alert sound to sound
three times.
run script "beep 3"
This example ensures that the script beep 3 is run by the AppleScript
scripting component.
run script "beep 3" in "AppleScript"
This example runs Run handler in the script file called MyScript.
run script file "MyVolume:MyDirectory:MyScript"