Script Editor user interface

This topic provides an introduction to the user interface for the script editor.

To open the script editor, do one of the following:

  • From the View menu select Show Script.

  • Choose Show Script from the projects or class context menu.

  • Click the Show Script icon in the toolbar.


An image that shows the Script Editor user interface

1

Menu Bar

2

Toolbar

3

Immediate, Watch, and Stack panes.

Additional windows are used during debugging to list variables, functions, or expressions that are calculated and displayed. For further information, see the script editor's Help.

4

Context Menus

5

Object and Proc lists.

The Object and Proc lists show the objects and procedures that are available for the selected class.

Select an item from the Object list (for example, Document) to implement a document extraction event. To implement a field extraction event, select <Field>, where <Field> is the name of the extraction field. To implement a locator method for a field extraction, select <Locator>, where <Locator> is the name of the locator field.

From the Proc list, choose the event you want to implement. For example, select Field1 from the Object list and After_Extract from the Proc list. This inserts the Field1_AfterExtract event into the selected sheet. If you want to insert a classification event, you must change to the project level. To do this, first switch to sheet 1 and select Document in the Object list and, for example, AfterClassifyImage in the Proc list to insert the Document_AfterClassifyImage event. For further information concerning the user interface, see the script editor's Help.

6

Sheets Tab

For each class and for each folder for which you show the script, a sheet is provided in the script editor that contains the script code for the class or the folder. The project script is always in the first script sheet. The editor can show up to ten different sheets. The first sheet always shows the script code on the project level, on which you implement the classification events. The other sheet tabs can be used to display the script code for all classes of the project, containing the events that occur during the extraction and for the script locator. Click on a sheet tab to show the script code area for a class. Double-click the tab to close the script code area for the class.

7

Edit Area

8

Status Bar