JavaScript

The Switch-internal scripting language JavaScript is intended primarily for working with variables and functions provided by Switch (rather than the operating system). A primary goal of the internal scripting language is to work with the contents of metadata fields associated with the jobs being processed.

Switch supports a substantial JavaScript subset (more precisely, it supports a subset of the ECMAScript 4.0 language), with extensions for:


JavaScript scripts have limited "external access". For example, there is no way to communicate with interactive applications and there is no access to operating system services.

JavaScript scripts are cross-platform, that is they work without change on both Mac OS X and Microsoft Windows.

Language reference

Refer to the Switch JavaScript language reference included with Switch help.

Extensions reference

Refer to the Scripting reference.