On the server, create a folder that contains the Applesoft program and BASIC.System. Rename the Applesoft program to STARTUP:
In the Aristotle Management program, add the program to the class list. The Title of the program can be any name that is appropriate -- it is used only for the Display menu. Set the path to:
/{servername}/{foldername}/{any other foldernames}/BASIC.SYSTEM
Set the Prefix to the Applesoft program's pathname. BASIC.System looks for a program with the name STARTUP in the current folder (subdirectory). If BASIC.System finds the program, it launches it.
The next issue is how to get back to Aristotle. The BYE command will not return the user to Aristotle. Since BASIC.System was the launching program, the BYE command attempts to run BASIC.System. Some method is needed to launch Aristotle again. The following method requires some programming, but does provide a way to get back to the Aristotle menu.
This example assumes that the Aristotle folder is located at the server volume root level with a pathname:
/{servername}/ARISTOTLE/MENU.D/DISPLAY
The example finds the servername and places where {servername} appears in the above pathname.
9900 D$=CHR$(4)
9910 PRINT D$;"PREFIX"
9920 INPUT PR$
9930 FOR I = 1 TO LEN(PR$)
9940 IF MID$ (PR$, 1+I,1) = "/" THEN 9990
9950 RT$=RT$+MID$(PR$1+I,1)
9960 NEXT I
9990 PRINT D$;"-/";RT$;"/ARISTOTLE/MENU.D/DISPLAY"
The following is a STARTDISCUSS9900 - Set D$ to Control-D.
9910 - Request the current PREFIX.
9920 - Put the current PREFIX into PR$.
9930 - Start loop to extract the servername from the PREFIX.
9940 - Skip the first character of PREFIX (/) and look for the second slash.
When the second slash is found, jump to 9990
9950 - Put all the characters up to the second slash into the variable RT$.
9990 - Run the Aristotle menu display program.
This code can be used as a stand-alone program, or the lines can be added to the Applesoft program.
- If used as a stand-alone program, place it in the same folder as the Applesoft program. After quitting the Aristotle-launched Applesoft program, the student needs to type:
RUN {name of program}
- If added to the Applesoft program, these lines need to be the very last lines that are executed in the BASIC program. Remember, the line numbers need to be appropriate for the program to which they are added.