MSCRIPT Tips

See all articles from CATS v3 n4
Author(s): Mark Fisher
Publication: CATS Newsletter
Pub Details: CATS v3 n4 (Volume 3, Issue 4)
Date: July 1985
Pages: 13-14

MSCRIPT is a great program. The documentation, however, isn’t so great. MSCRIPT was written to apply to a variety of machines, and the documentation provides only one short page of specific instructions for the 2068. In this article, I’ll discuss two major classes of omissions in the documentation – missing commands and detailed SAVE and LOAD information. As a conclusion, I’ll cover some points that can make using MSCRIPT even more useful.

The Missing Commands

Both the manual and the HELP screen ignore several important commands. These commands relate to cursor movement, and all are reached through the caps + symbol shift, or Function key. These commands should have been included in the HELP screen, but they weren’t.

Fn-5: This brings the cursor to the left margin in one stroke, similar to a carriage return on a typewriter, but without the newline.

Fn-8: This is TAB. It is referred to in the documentation as the TAB key, but its location on the 2068 isn’t mentioned. The cursor will move to the next TAB position as shown on the status line at the bottom of the page. TAB positions are changed through the Main Menu. (To find the TAB values you will need, move the cursor to the position needed, and note down the Column position from the bottom line of the screen.) (As mentioned in the May Newsletter, TAB can be moved to CAPS-shift 1 by POKEing 42661,152 before entering MSCRIPT.)

Fn-6: Page down. This leaves the cursor in the same screen position, but writes the next 22 lines of text to the screen.

Fn-7: Page up. This moves the text on screen up 22 lines.

SAVE and LOAD Info

MSCRIPT is completely self-contained: unlike almost all other programs, it makes no use of the original Timex operating system. In order to read or write to a cassette, then, MSCRIPT contains its own code. In writing this code, the authors didn’t follow the Timex system completely.

SAVEing

The Save command is reached by entering S or s as the first character in the command line. The Timex requires quote marks around the SAVE name. MSCRIPT, however requires no quotes. A text file can be SAVEd under the name “letter” by typing:

s letter

MSCRIPT will ignore leading spaces; “s letter” or “sletter” will SAVE as the same. Once the command line is ENTERed, the familiar phrase “Start tape and press ENTER” will appear. As with the Timex SAVE, data will be put out as soon as ENTER is pressed that second time. Unlike the Timex, MSCRIPT does not echo the tape signal to the screen, so the only way to tell if the signal is finished is that the text reappears on the screen.

In addition, the data format that MSCRIPT uses is different than Timex’s, and MSCRIPT files cannot be loaded by the standard Timex load.

LOADing

LOADing is different, as well. If your file was saved as “letter,” as in the example above, it can be reloaded by using: l letter -or- lletter -or- ll

Using “l litter” will bomb with the message “Tape IO Error!”. Once the command line is ENTERed, you will again see the “Start tape and press ENTER” prompt. MSCRIPT means it! Press ENTER again, and MSCRIPT will listen for an incoming signal from the tape. Again, MSCRIPT does not echo the signal to the screen, so it can be difficult to tell where to start. In addition, MSCRIPT won’t tell what text files it’s reading – it either loads the file, or prints “Tape IO error!”.

To counteract the lack of a visual echo to the screen, I recommend adding some sort of monitor to the tape recorder – either an LED that shows when a program is playing, or a high-resistance bypass to the speaker, allowing a faint echo to be heard.

To compensate for the lack of the tape’s file name on screen, the best defense is an accurate log of each cassette’s contents. If that fails and you have forgotten the name the file was SAVEd under, you have two choices: either LOAD using the first letter of the file (if you remember that), or use the HEADER program from the library tape to read the leader. Although the format of the header is different, HEADER will read the second through last character in the file name. HEADER won’t tell you that critical first letter, but it should jog your memory – at least it’s better than trying all upper and lower case letters.

VERIFY=APPEND

Alas, VERIFY doesn’t exist in MSCRIPT. However, MSCRIPT does include an important extra command, APPEND. The syntax is the same as other MSCRIPT tape comands, and it will non-destructivly allow you to combine an existing document with another one from the tape. This can be used as a form of VERIFY for text files that are less than half the maximum. After the file is SAVEd, just rewind the tape, and APPEND the file again. If it was a good SAVE, it should go in easily, leaving you with two copies of the text file in memory. Check for obvious glitches, then block delete the second copy.

As a footnote, it should be noted that these problems of MSCRIPT’s version of tape IO may evaporate soon. In order to use MSCRIPT on disc, it is necessary to exit MSCRIPT. Versions that allow this have already been created by several ace programmers, including Jack Dohaney. Once MSCRIPT is exited, standard LOAD and SAVE commands can work.

Everyday Use: Text Formatting

As you get accustomed to MSCRIPT, you will learn to use the special features offered by your printer. MSCRIPT allows these, but requires some homework in setting up the definitions of its special characters at some time before they appear in the text. If your writing tends to follow the same format, you may save time by creating a text file that contains only formatting information – line length, margins, special printer definitions, etc. I went beyond this, and created a blank letter form, with spacing already worked out. When doing a series of reports, I created a report form and SAVEd it, thus speeding up the actual report writing, as I was constantly prompted for the next item to include. If you’re using special TAB settings, you won’t be able to save or load them; instead, just insert a comment line documenting the TAB positions you need, and insert them when you restart the program.

Multiple Copies

MSCRIPT has no provision for printing multiple copies, but you can persuade it to print a few, if your document isn’t too long. When the text is completed, enclose the entire text file with block markers as the first and last characters, move the cursor just beyond the last block marker, and press Fn-C for as many copies as you want (or have space for). Print as normal.

Printing Portions of Text.

MSCRIPT can’t “officially” exclude a portion of text from being printed. A “>*” at the head of a line keeps that line from printing, but it’s not effective for large blocks of text. However, there are two strategies you can use to exclude large blocks of text: 1) SAVE the full text to tape, and block-delete the unneeded portion before printing. 2) Block-move the desired text to the head of the file, and end it with a new-page marker. Print in Single-Sheet mode, and when the text you want to print is on paper, press break (this also works in Memotext).

Command Syntax

MSCRIPT is very tolerant of variations of syntax. The manual specifies commands such as “JU=Y” in its discussion, but MSCRIPT will treat “ju=y”, or even “juy”, as the same command. The full syntax is easier to read when you’re trying to figure out why your printer just shot its platen through the wall, but the abbreviated syntax is quicker to type.

Don’t forget to keep an accurate log of text files, and think about adding an audible monitor to the tape player. Lastly, if a text file doesn’t go in, press ENTER again, rewind the tape, and try again – you probably forgot to press ENTER twice. Good luck!

MF