2022.2

Table Of Contents
Note:
l
The JScript engine is Microsoft’s 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 meth-
ods 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 and for Python ActivePython can be installed.3.
These links are provided for convenience only, and Upland Objectif Lune does not offer
support for their use.
For information on the available editor options, refer to "Editor Options" on page676.
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.
Importing a script
To import a script:
1. In the editor, choose File > Import. The Open dialog box appears.
2. To import a script that uses a different scripting language or that was saved under a different file
format, make a selection in the Files of type drop-down list.
3. Navigate to the script you want to import and select it.
4. Click OK. The script is imported, displayed and formatted according to the syntax of the language
selected in the editor. If the imported file had the extension of a recognized scripting language
(.vbs or .js, for example), the editor language is automatically changed.
Exporting a script
To export a script:
1. In the editor, choose File > Export. The Save As dialog box appears.
2. To save the script using a different scripting language or under a different file format, make a
selection in the Save as type drop-down list.
Page 119