Adobe 27510753 Scripting Guide - Page 65
Object statistics, sleep, summary, write
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 65 highlights
Adobe InDesign CS2 Scripting Guide Using ExtendScript Tools and Features 57 sleep Suspends the calling thread for the given number of milliseconds. $.sleep (milliseconds) Returns undefined. During a sleep period, checks at 100 millisecond intervals to see whether the sleep should be terminated. This can happen if there is a break request, or if the script timeout has expired. milliseconds The number of milliseconds to wait. summary $.summary ([classname]) Collects a summary of object counts into a table and returns this table as a string. The table shows the number of objects in each specified class. For example: 3 Array 5 String classname Optional. The type of object to count. If not supplied, counts all objects currently defined. write $.write (text[, text...]...) Writes the specified text to the JavaScript Console. Returns undefined. text writeln $.writeln (text[, text...]...) One or more strings to write, which are concatenated to form a single string. Writes the specified text to the JavaScript Console and appends a linefeed sequence. Returns undefined. text One or more strings to write, which are concatenated to form a single string. Object statistics The output from $.list() is formatted as in the following example. Address L 0092196c 4 00976c8c 2 00991bc4 L 1 0099142c L 2 00991294 1 Refs Prop 0 Function 1 Object 1 LOTest 2 Function 0 Object Class [toplevel] Object LOTest LOTest Object Name workspace The columns show the following object information. Address The physical address of the object in memory. L This column contains the letter "L" if the object is a LiveObject (which is an internal data type). Refs The reference count of the object.