Saves a the contents of the Modalys workspace to a Mlys-format Modalys script.
The (save-script ... ) function can be created using the following Lisp syntax:
(save-script filename)
The (save-script ... ) function takes one argument:
The pathname of the Mlys file should be provided in quotes. The path is relative to the Modalys application, unless it begins with a slash, in which case it is an absolute path from the root directory of the hard disk. The syntax for the path follows the syntax rules of your operating system.
It is usually easier to choose the "Export as Mlys ..." option from the application's File menu. Nonetheless, it can sometimes be useful to be able to automatically save Mlys script files from within a Lisp script.
When saving from a script, remember that the name of the Mlys file should be in quotes, and we also suggest saving the file with the extension ".mlys" (extensions are not automatically added to the filename). The following command will export a Mlys script to a file in the same directory as the Modalys application:
(save-script "myscript.mlys")
Generally, you will probably want to use an absolute path such as:
(save-script "/my-disk/my-folder/myscript.mlys")
There are no special options for this function.