Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter SixteenApplication (continued)

16.2 Command Line Operation

16.2.1 Parameter

A method of externally running a script from another application is provided by using one or more command line arguments. A script can be run either before the API Verbs and Application Startup script or after the Graphical User Interface (GUI) starts up.

As part of the normal processing, any script can capture command line arguments for processing. (See the next section).

16.2.2 Script Command Line Arguments

The following command line options are provided for scripts:

/RunScript:filename

Adding this command line argument with a filename (and path) will cause the script to be executed prior to the presentation of the GUI or immediately after the GUI starts.

If the script contains errors or the script cannot be found and the NoGUI argument is used, the application log will contain details.

If a path is not provided, the script file is assumed to be located in the program’s Scripts folder.

/NoGUI

When present, the NoGUI option causes the script to be run immediately prior to processing API command line verbs and the application startup script. Normally that application will exit after the processing of the script but the script can indicate a desire to continue by returning ERROR_CANCEL. In such a case the NoGUI flag and RunScript arguments are reset and processing continues.

No NoGUI option can also be added at any time to stop the GUI from running.

When the GUI runs, the script is executed as the last command line operation. All files to be opened or any other actions will have already been completed. In this mode, the return value of the script is not relevant.

If run without the Results option is provided, all message boxes will be sent to the result and dialog interfacing is not allowed (presumably there is no GUI in this mode).

See the specific application for information on specific command line actions.