2020.2

Table Of Contents
var js = loadtext("js/my-script.js");
results.append(query("<script>").text(js));
The following script loads a style sheet (from the Resources pane) into the <style> element.
var css = loadtext("css/my-styles.css");
results.append(query("<style type='text/css'>").text(css));
logger
This is a global ScriptLogger object that allows logging messages such as error, warning or
informational messages. The messages will appear in the Messages pane (see "Preflight
Results and Messages" on page554 and "Designer User Interface" on page448).
Methods
These are the methods of the logger object.
Method Parameters Description
error()
message: string
Logs an error message
info() message: string Logs an informational message
warn() message: string Logs a warning message
Number functions
Note
The locale also influences the output of some Number functions; see "Locale" on
page327.
currency(value)
Formats a number as an amount of money. Which currency symbol and which thousands
separator are used depends on the Locale; see "Locale" on page327.
value
Page 801