Debugging In The Toolkit - Adobe 27510753 - InDesign CS2 - PC Manual

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

Advertisement

50
Using ExtendScript Tools and Features
Right arrow
Up arrow
Down arrow
Page up
Page down
Ctrl + Up arrow
Ctrl + Down arrow
Ctrl + Page up
Ctrl + page down
Ctrl + Left arrow
Ctrl + right arrow
Home
End
Ctrl + Home
Ctrl + End
The editor supports extended keyboard input via IME (Windows) or TMS (Mac OS). This is especially important
for Far Eastern characters.
Syntax checking
Before running the new script or saving the text as a script file, you can check whether the text contains
JavaScript syntax errors. Choose Check Syntax from the Edit menu or from the Editor's right-click context
menu.
If the script is syntactically correct, the status line shows "No syntax errors".
l
If the Toolkit finds a syntax error, such as a missing quote, it highlights the affected text, plays a sound, and
l
shows the error message in the status line so you can fix the error.

Debugging in the Toolkit

You can debug the code in the currently active Editor tab. Select one of the debugging commands to either
run or to single-step through the program.
When you run code from the Editor, it runs in the current target application's selected JavaScript engine.
The Toolkit itself runs an independent JavaScript engine, so you can quickly edit and run a script without
connecting to a target application.
Evaluation in help tips
If you let your mouse pointer rest over a variable or function in an Editor tab, the result of evaluating that
variable or function is displayed as a help tip. When you are not debugging the program, this is helpful only if
Move insertion point right one character
Move insertion point up one line; stay in column if possible
Move insertion point down one line; stay in column if possible
Move insertion point one page up
Move insertion point one page down
Scroll up one line without moving the insertion point
Scroll down one line without moving the insertion point
Scroll one page up without moving the insertion point
Scroll one page down without moving the insertion point
Move insertion point one word to the left
Move insertion point one word to the right
Move insertion point to start of line
Move insertion point to end of line
Move insertion point to start of text
Move insertion point to end of text
Adobe InDesign CS2 Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents