
CHAPTER 8: ExtendScript Tools and Features Dollar ($) object 217
engineName
String The name of the current JavaScript engine, if set. Read only.
error
Error
String
The most recent run-time error information, contained in a JavaScript
Error object.
Assigning error text to this property generates a run-time error; however,
the preferred way to generate a run-time error is to throw an
Error object.
fileName
String The file name of the current script. Read only.
flags
Number Gets or sets low-level debug output flags. A logical AND of the following
bit flag values:
X 0x0002 (2): Displays each line with its line number as it is executed.
X 0x0040 (64): Enables excessive garbage collection. Usually, garbage
collection starts when the number of objects has increased by a
certain amount since the last garbage collection. This flag causes
ExtendScript to garbage collect after almost every statement. This
impairs performance severely, but is useful when you suspect that an
object gets released too soon.
X 0x0080 (128): Displays all calls with their arguments and the return
value.
X 0x0100 (256): Enables extended error handling (see strict).
X 0x0200 (512): Enables the localization feature of the toString
method. Equivalent to the localize
property.
N
OTE: Other bit values are not public and should not be used.
global
Global Provides access to the Global object, which contains the JavaScript global
namespace.
hiresTimer
Number A high-resolution timer that measures the number of microseconds since
this property was last accessed. Value is initialized as early as possible, so
the first access returns the startup time for ExtendScript. The property is
thread-local; that is, the first access on a thread returns the time needed to
create and initialize that thread. Read only.
includePath
String The path for include files for the current script. Read only.
level
Number The current debugging level, which enables or disables the JavaScript
debugger. Read only. One of:
0: No debugging
1: Break on runtime errors
2: Full debug mode
line
Number The current line of the currently executing script; the first line is number 1.
Read only.
Comentarios a estos manuales