The Script Object Toolbar

The Script Object Toolbar below appears at the top of the Script Object window when you add a Script Object to a page

image\ScriptView_Toolbar.jpg

Toolbar descriptions

Set Internal Script

Sets the current contents of the Script Object as an Internal Script - i.e. the content is not linked to an external file, it is embedded in this Script Object. This is the default setting for new Script Objects added to a page.

Set External File

Import a Script from an external source, such as a floppy disk or hard disk.

Save File

Save changes made to this script to the external file. This option is only available if the content of the Script Object is linked to an External File. Any Script Object in the current publication that uses the same external file will also be updated – see External Scripts for more information.

Find

Opens the Find dialog box, used to search for words or phrases that appear in the current script.

Find & Replace

Opens the Find & Replace dialog box, used to search for words or phrases that appear in the current script, and replace them with an alternative.

EasyCode list

Lets you quickly insert a function with the basic syntax in place. Choose from the basic built-in functions (e.g. "if", "for" and "while" loops) or from the list of functions you have created in the script. Select them by clicking on them in the drop down list and then press the insert button to place them at the current cursor position.

Go to a function

An aid to navigating your code quickly, this dropdown lists all the functions that have been declared (i.e. created) in this script. If you select the function name from the list, the editor jumps to the first line of the function. If you are currently working in a function, its name is displayed here. The dropdown list is in alphabetical order.

Cursor Position

Displays the current line and column number of the cursor within the script. This is useful when checking for syntax errors that appear in the Error Message pane at the bottom of the Script Editor pane.

Related Topics:

The Script Object window

The Script Editor pane

The Error Message pane

External Scripts