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:
Accessing key Switch variables and functions, including the metadata context of the job being processed.
Reading and writing plain text files.
Reading and writing XML files and performing XSLT transforms.
Executing a command line application.
Database access
Web services access
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.
Refer to the Switch JavaScript language reference included with Switch help.
Refer to the Scripting reference.