Scripting Site object provides a way for a script to display text in script console window (see alert function for more information). It also allows a script to query a user for some text, using the input function.
Scripting site object also provides the ability for delayed execution using async function. cancelAsync function may be used to cancel delayed execution. loadTextFile function can be used to load the contents of a text file into a string variable.
delay function returns a promise object that gets completed in a given number of milliseconds.
The Scripting Site object is “virtual”. Its methods are declared in global scope.