Adobe 27510753 Scripting Guide - Page 63
Dollar ($) Object, Dollar ($) object properties
![]() |
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 63 highlights
Adobe InDesign CS2 Scripting Guide Using ExtendScript Tools and Features 55 Dollar ($) Object This global ExtendScript object provides a number of debugging facilities and informational methods. The properties of the $ object allow you to get global information such as the most recent run-time error, and set flags that control debugging and localization behavior. The methods allow you to output text to the JavaScript Console during script execution, control execution and other ExtendScript behavior programmatically, and gather statistics on object use. Dollar ($) object properties build Number The ExtendScript build number. Read only. buildDate Date The date ExtendScript was built. Read only. error Error String The most recent run-time error information, contained in a JavaScript Error object. flags global Number 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. Gets or sets low-level debug output flags. A logical AND of the following bit flag values: l 0x0002 (2): Displays each line with its line number as it is executed. l 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. l 0x0080 (128): Displays all calls with their arguments and the return value. l 0x0100 (256): Enables extended error handling (see the strict property). l 0x0200 (512): Enables the localization feature of the toString method. Equivalent to the localize property. Provides access to the global object, which contains the JavaScript global namespace. level locale Number String Enables or disables the JavaScript debugger. One of: l 0: No debugging l 1: Break on runtime errors l 2: Full debug mode Gets or sets the current locale. The string contains five characters in the form LL _ RR, where LL is an ISO 639 language specifier, and RR is an ISO 3166 region specifier. Initially, this is the value that the application or the platform returns for the current user. You can set it to temporarily change the locale for testing. To return to the application or platform setting, set to undefined, null, or the empty string. localize Boolean Enables or disables the extended localization features of the built-in toString method. See the " Localizing ExtendScript Strings" section. memCache Number Gets or sets the ExtendScript memory cache size in bytes.
![](/manual_guide/products/adobe-27510753-scripting-guide-5f6265c/63.png)