2021.1

Table Of Contents
The Script Editor and XSLT Editor
The Script Editor is used to edit scripts in Run Script tasks and the XSLT Editor is used to
edit scripts in Open XSLT action tasks. You can open either editor using the Open Editor
button from the task's Properties dialog. When you do so, the script currently displayed in the
dialog box is pasted to the editors scripting box.
Both editors are visually identical and share almost exactly the same commands. They let you
import and export scripts, perform common editing, such as search and replace, and feature
syntax highlighting and formatting.
You can use the Script Editor to edit scripts written in VBScript, JavaScript (JScript, Enhanced
JScript), Perl, and Python.
You can use the XSLT Editor to edit scripts written in XSLT 1.0 and 2.0.
Note
l
The JScript engine is Microsofts JScript 5.8, which is the equivalent of JavaScript
1.5 (ECMA-262 3rd edition + ECMA-327 (ES-CP) + JSON).
Enhanced JScript allows the use of more recent JavaScript syntax. Many methods
- basic methods like Date.now(), String.trim(), btoa()/atob() and more
advanced methods like Array.forEach() - are added to the JScript engine via
the polyfill.js library.
l While JavaScript and VBScript are natively available on Windows operating
systems, Python and Perl require third-party tools to be functional. For Perl,
ActivePerl can be installed. For Python ActivePython (version 2.7.13 ) can be
installed.
For information on the available editor options, refer to "Editor Options" on page812.
Import and export scripts
Both the Script Editor and XSLT Editor let you import and export scripts.
Note
When you import a script, it replaces any script currently displayed in the editor.
Page 143