Installing the script

In order to run your script, it must first be installed in epcEdit's script directory. For this purpose, just copy (or move) the file containing the script into the extensions directory that is located in the library directory of epcEdit.

On a Unix system, you will copy the script into the directory /usr/local/tksgml/lib/epcEdit-0.92/extensions. If you have installed epcEdit in a different location, you will need to copy the script into the directory lib/epcEdit-0.92/extensions relative to the directory in which you have installed epcEdit.

On a Windows system, the default extension directory is C:/Program files/Tcl/lib/epcEdit-0.92/extensions. If you have installed epcEdit into a different directory, you will need to copy the script into the directory lib/epcEdit-0.92/extensions relative to the directory in which you have installed epcEdit.

After copying (or moving) the script file into the extension directory, you will have to restart epcEdit in order to recognized the new extension script.

Running the script

To run the script after it has been installed in the extensions directory, restart epcEdit, load a document, and select Extra > Run Script from the main menu. A dialog box will appear that contains the names of all registered scripts. Click on Count Elements, then press the Ok button.

epcEdit will invoke the start procedure for your script and display the results in a dialog box. To terminate your script, simply click on the Ok button in the dialog box.