Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
34 Command Definitions
ERRORS
Load Script 2
The Load Script command loads a compiled script into the current script as a
script object. A script object is a user-defined object that is treated as a value
by AppleScript. Script objects are described in Chapter 9, “Script Objects,”
of the AppleScript Language Guide.
Load Script is the only command provided by the Load Script scripting
addition.
SYNTAX
load script referenceToFile
Error
number Error message
–35 Disk <name> wasn't found.
–37 Bad name for file.
–43 File <name> wasn't found.
–50 Parameter error.
–108 Out of memory.
–120 Folder <name> wasn't found.
–1700 Can't make some data into the expected type.
–1701 Some parameter is missing for <commandName>.
–1703 Some data was the wrong type.
–1704 Some parameter was invalid.
–1705 Operation involving a list item failed.
–1718 Reply has not yet arrived.
–1719 Can't get <reference>. Invalid index.