Adobe 27510753 Scripting Guide - Page 64
Dollar ($) object functions, objects, screens, strict, version, about, clearbp, getenv, setbp
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 64 highlights
56 Using ExtendScript Tools and Features Adobe InDesign CS2 Scripting Guide objects os screens strict version Number The total count of all JavaScript objects defined so far. Read only. String The current operating system version. Read only. Array Boolean An array of objects containing information about the display screens attached to your computer. Each object has the properties left, top, right, and bottom, which contain the four corners of each screen in global coordinates. A property primary is true if that object describes the primary display. When true, any attempt to write to a read-only property causes a runtime error. Some objects do not permit the creation of new properties when true. String The version number of the ExtendScript engine as a three-part number and description; for example: "3.6.5 (debug)" Read only. Dollar ($) object functions about $.about () Displays the About box for the ExtendScript component, and returns the text of the About box as a string. bp $.bp ([condition]) Executes a breakpoint at the current position. Returns undefined. If no condition is needed, it is recommended that you use the JavaScript debugger statement in the script, rather than this method. condition Optional. A string containing a JavaScript statement to be used as a condition. If the statement evaluates to true or nonzero when this point is reached, execution stops. clearbp $.clearbp ([line]) Removes a breakpoint from the current script. Returns undefined. line gc $.gc () Optional. The line at which to clear the breakpoint. If 0 or not supplied, clears the breakpoint at the current line number. Initiates garbage collection. Returns undefined. getenv $.getenv (envname) Returns the value of the specified environment variable, or null if no such variable is defined. envname The name of the environment variable. list $.list ([classname]) Collects object information into a table and returns this table as a string. See the following "Object statistics" section. classname Optional. The type of object about which to collect information. If not supplied, collects information about all objects currently defined. setbp $.setbp ([line, condition]) Sets a breakpoint in the current script. Returns undefined. If no arguments are needed, it is recommended that you use the JavaScript debugger statement in the script, rather than this method. line Optional. The line at which to stop execution. If 0 or not supplied, sets the breakpoint at the current line number. condition Optional. A string containing a JavaScript statement to be used for a conditional breakpoint. If the statement evaluates to true or nonzero when the line is reached, execution stops.