Tracking Data - Adobe 27510753 - InDesign CS2 - PC Manual

Scripting guide
Hide thumbs Also See for 27510753 - InDesign CS2 - PC:
Table of Contents

Advertisement

Adobe InDesign CS2 Scripting Guide

Tracking data

The Data Browser tab is your window into the JavaScript engine. It displays all live data defined in the current
context, as a list of variables with their current values. If execution has stopped at a breakpoint, it shows
variables that have been defined using var in the current function, and the function arguments. To show
variables defined in the global or calling scope, use the Call Stack to change the context (see "The call stack").
You can use the Data Browser to examine and set variable values.
Click a variable name to show its current value in the edit field at the top of the tab.
l
To change the value, enter a new value and press enter. If a variable is read-only, the edit field is disabled.
l
The flyout menu for this tab lets you control the amount of data displayed:
Show Global Functions toggles the display of all global function definitions.
l
Show Object Methods toggles the display of all functions that are attached to objects. Most often, the
l
interesting data in an object are its callable methods.
Show JavaScript Language Elements toggles the display of all data that is part of the JavaScript language
l
standard, such as the Array constructor or the Math object. An interesting property is the _ _ proto _ _
property, which reveals the JavaScript object prototype chain.
Each variable has a small icon that indicates the data type. An invalid object is a reference to an object that
has been deleted. If a variable is undefined, it does not have an icon.
null
Boolean
Number
String
Object
Invalid object
You can inspect an object's content by clicking its icon. The list expands to show the object's properties (and
methods, if Show Object Methods is enabled); the triangle points down to indicate that the object is open.
Note:
In Photoshop® CS2, the Data Browser pane is populated only during the debugging of a JavaScript
program within Photoshop.
Display or modify selected variable's value
Object opened to show properties
Using ExtendScript Tools and Features
47

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents