Adobe 27510753 Scripting Guide - Page 58
Debugging in the Toolkit, Syntax checking, Evaluation in help tips
![]() |
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 58 highlights
50 Using ExtendScript Tools and Features Adobe InDesign CS2 Scripting Guide 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 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 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. l 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 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
![](/manual_guide/products/adobe-27510753-scripting-guide-5f6265c/58.png)