The Worksheet
Smile has a special text window, named "Worksheet". The "Worksheet" file is located in the Smile folder. Except for its name and location, it is a regular Smile text file.
There are four differences between an ordinary
text window
and the "Worksheet":
- The Worksheet is saved automatically on quitting Smile. Any changes that may have been made will be automatically saved.
- By default, the result (if any) returned by the execution of a script contained in a script window is appended at the end of the "Worksheet". If the "Worksheet" is not open, it will open automatically to display the result. It is often convenient to redirect the output of the result to another window, see
output windows
.
- The commands 'msg(theString)' and 'log(theThing)' (see
routines
) can always be used to display some message in scripts. It will append it, as text, at the end of the "Worksheet".
- The "Worksheet" can be set to open automatically when Smile launches, in the
Preferences settings
.