Switch provides a number of Switch-specific classes and functions to support accessing key Switch variables and functions, including the metadata context of the job being processed. Refer to the Switch scripting API for reference documentation about these extensions.
The Switch scripting API reference documentation uses the JavaScript syntax and semantics to describe its various classes and functions. Unfortunately the AppleScript syntax and semantics differ substantially from JavaScript (and most other scripting languages). Thus, while the AppleScript API provides the same concepts and functionality, it has been adapted to the AppleScript way.
Refer to the AppleScript dictionary included with the Switch server application for a brief description of the AppleScript classes and methods it offers, and refer to the corresponding sections in the scripting API reference for more extensive background information.
Not all of the classes and functions described in the scripting API are available when using AppleScript. Specifically, the classes and functions in the "Utility", "XML", "Database" and "Network" modules are not available. If you need the functionality in these modules, you have to use AppleScript extensions included with the operating system or offered by third-parties.