Add Script Command Dialog Box
 
 
 

Appears when you add a script to a custom toolbar, either by dragging a saved script file onto a toolbar or by dragging selected text from the script editor onto a toolbar and then selecting Script Command (external file).

NoteThis method of creating commands and adding them to toolbars is somewhat deprecated. It is recommended that you create self-installing command, and then add a button for that command to a toolbar if desired. See Custom Command Wizard [SDK Guide].

Command/Button Name

The name that appears as a label on the toolbar button.

Script Command Name

The name that gets logged in the history when you run the command from the toolbar.

Description

An optional description of the command. This description is displayed in the Customize Toolbar dialog box and the Keyboard Mapping dialog box.

Filename

The name of the file that contains the saved script. Use the browse button (...) to find more files.

Script Language

The scripting language in which the script is written. The available choices depend on the ActiveX-enabled scripting languages that are installed on your computer.

Script Procedure

The procedure to run when the button is clicked, in case multiple procedures are declared within the same script file. To see a list of available procedures, you must click Parse Script. If you do not specify a procedure, only global code will be executed, as well as any procedures that are called from global code.

Parameter/Value

If the procedure specified in Script Procedure contains arguments, they are listed under Parameters. For each argument, type a value in the corresponding Value box.

Note that the Prompt on Run option on the drop-down list does not work.

Parse Script

Parses the script to find any defined procedures and arguments.

Warning! Parsing a script may execute global code; i.e., any code that is not within a defined procedure. In such cases, it will also run procedures that are called from global code.