AppleScript scripting in Switch is intended primarily for communicating with other applications or with operating systems services from within Switch. A script object representing the Switch application provides access to key variables and functions, including the metadata context of the job being processed. AppleScript scripting is available on Mac OS X only. Refer to the scripting overview for more background information.
Comprehensive reference and introductory information about AppleScript can be found on the Apple web site (AppleScript) and in widely available literature.