Core JavaScriptExtendScript only
Object

global

The global methods and properties for ExtendScript.

Properties

NameType AccessDescription
Number = +Infinity read/write The Infinity global property is a predefined variable with the value for infinity.
Number = NaN read/write The NaN global property is a predefined variable with the value NaN (Not-a-Number), as specified by the IEEE-754 standard.
Application readonly The application object
Undefined = undefined read/write This global property is a predefined variable with the value for an undefined value.

Methods

void

Displays an alert box

message String The text to display
title? String The title of the alert; ignored on the Macintosh
errorIcon Boolean Display an Error icon; ignored on the Macintosh
Boolean

Displays an alert box with Yes and No buttons; returns true for Yes

message String The text to display
noAsDefault Boolean Set to true to set the No button as the default button
title? String The title of the alert; ignored on the Macintosh
String

Decodes a string created with encodeURI().

uri String The text to decode.
String

Decodes a string created with encodeURIComponent().

uri String The text to decode.
String

Encodes a string after RFC2396.

text String The text to encode.
String

Encodes a string after RFC2396.

text String The text to encode.
String

Creates a URL-encoded string from aString.

aString String The string to be encoded.
→ Varies

Evaluates its argument as a JavaScript script, and returns the result of evaluation.

stringExpression String The string to evaluate.
Boolean

Evaluates an expression and reports whether the result is a finite number.

expression Number Any valid JavaScript expression.
Boolean

Evaluates an expression and reports whether the result is "Not-a-Number" (NaN).

expression Number Any valid JavaScript expression.
Boolean

Returns true if the supplied string is a valid XML name.

name String The XML name to test.
String

Localizes a ZString-encoded string and merges additional arguments into the string.

what String The string to localize. A ZString-encoded string that can contain placeholder for additional arguments in the form %1 to %n.
argument? Varies Optional argument(s) to be merged into the string. There may be more than one argument.
Number

Extracts a floating-point number from a string.

text String The string from which to extract a floating point number.
Number

Extracts an integer from a string.

text String The string from which to extract an integer.
base? Number 2–36 The base of the string to parse (from base 2 to base 36).
String

Displays a dialog allowing the user to enter text

prompt String The text to display
default? String The default text to preset the edit field with
title? String The title of the dialog;
void

Defines the default XML namespace.

namespace Namespace The namespace to use.
String

Translates URL-encoded string into a regular string, and returns that string.

stringExpression String The URL-encoded string to convert.
String

Creates a source code representation of the supplied argument, and returns it as a string.

what Varies The object to uneval.