next up previous contents index
Next: The XLISP-STAT Editor Up: Some Useful Shortcuts Previous: Loading Files

Saving Your Work

If you want to record a session with XLISP-STAT you can do so using the dribble   function. The expression

(dribble "myfile")

starts a recording. All expressions typed by you and all results typed by XLISP-STAT will be entered into the file named myfile . The expression
(dribble)

stops the recording. Note that (dribble "myfile") starts a new file by the name myfile . If you already have a file by that name its contents will be lost. Thus you can't use dribble to toggle on and off recording to a single file. You can also turn dribbling on and off using the Dribble item on the Command menu.

dribble only records text that is typed, not plots. However, you can use the standard Macintosh shortcut COMMAND-SHIFT-3 to save a MacPaint image of the current screen. You can also choose the Copy command from the Edit menu, or its command key shortcut COMMAND-C, while a plot window is the active window to save the contents of the plot window to the clip board   . You can then open the scrap book from the apple menu and paste the plot into the scrap book.

Variables you define in XLISP-STAT only exist for the duration of the current session. If you quit from XLISP-STAT, or the program crashes, your data will be lost. To preserve your data you can use the savevar   function. This function allows you to save one or more variables into a file. Again a new file is created and any existing file by the same name is destroyed. To save the variable precipitation in a file called precipitation.lsp type

(savevar 'precipitation "precipitation")

Do not add the .lsp suffix yourself; savevar will supply it. To save the two variables precipitation and purchases in the file examples.lsp type gif .
(savevar '(purchases precipitation) "examples")

The files precipitation.lsp and examples.lsp now contain a set of expression that, when read in with the load command, will recreate the variables precipitation and purchases . You can look at these files with an editor like MacWrite or the XLISP-STAT editor and you can prepare files with your own data by following these examples.



next up previous contents index
Next: The XLISP-STAT Editor Up: Some Useful Shortcuts Previous: Loading Files



Anthony Rossini
Fri Oct 20 10:29:17 EDT 1995