Recherche Google
ModalysThe Modalys Workspace > Save Mlys Script File
page précédentepage suivante

Save Mlys Script File

Description

Saves a the contents of the Modalys workspace to a Mlys-format Modalys script.

(save-script ... )

Lisp Syntax and Default Values

The (save-script ... ) function can be created using the following Lisp syntax:

(save-script filename)

Parameters

The (save-script ... ) function takes one argument:

  • filename: pathname of Mlys file to be saved. (in quotes.)

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.

Discussion

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")

Options

There are no special options for this function.

page précédentepage suivante
A propos...©IRCAM 2014Réalisé avec Scenari