START OF SCRIPT
6.1.2 Typing in the script
Now that we know our script line by line,
we can type it in and
compile it. To do this, we'll run the
Text Editor program by selecting
Text editor
from Novaterm's Utility Modules menu.
If you are unfamiliar with how the text
editor works, see Appendix A,
Text Editor
for a description.
First, we'll type in the script just as
it appears above. It's very
important that you use lowercase letters
for all of the script
commands. Strings that are enclosed in
quotes (such as the search
strings) may contain both upper and lowercase
letters. (To save time
in typing the script, you may leave out
all of the comments.)
Now, we'll save the script we just typed
to a text file so we can look at
or change it later. Use the CTRL-S
command, and choose a file name.
This script could be called eskimo.ss.
I use the extension .ss to
denote script source files (the "ss" stands
for "script source").
It's important to understand that the file
you just saved is the "source
code" for the script, not the actual script
that Novaterm can execute.
To convert this source code into a form
that Novaterm can recognize,
we must first "compile" the script. This
conversion process, or
compilation, is built into the Text Editor.
To do this, press RUN/STOP
in the Text Editor (it won't break out
of the program!). The Text
Editor compiles the script quickly, and
asks you for a file name for the
compiled script. The compiled script could
be called eskimo.sc.
I
use the extension .sc
to denote executable scripts (the "sc" stands for