Shell
Description: |
baShell executes a file. | ||||||||||||||||||||||||||||||||||||||||||
Platforms: |
Windows and Macintosh | ||||||||||||||||||||||||||||||||||||||||||
Usage: |
Result = baShell( Operation, Filename, Args, WorkDir, State ) | ||||||||||||||||||||||||||||||||||||||||||
Arguments: |
String, string, string, string, string. |
||||||||||||||||||||||||||||||||||||||||||
Returns: |
Integer.
|
||||||||||||||||||||||||||||||||||||||||||
Examples: |
Director: Authorware: |
||||||||||||||||||||||||||||||||||||||||||
Notes: |
On Windows, this function can execute either a document or a program file. If it opens a document file, the Args parameter is ignored. The Operation can be any action that is registered with the document type, most commonly 'open' and 'print'. If the specified action is not registered to the document, the function will return 31. Only the 'open' action works on program files. On Macintosh, this function can be used to open a document in a specified program, rather than in the default program as baOpenFile does. The Filename must be supplied in Unix format. If there is a space in the file name, then the entire name must be surrounded by single quotation marks. The Args is the document to open and must be a valid existing file name, be in Unix format and use single quotation marks if the name contains a space. You can supply more than one document name, in this case each file name must be surrounded by single quotation marks and separated by a space. On Macintosh, you can use
"system" as an Operation to execute a system function, in which case the
Filename is used for the command passed to the system, e.g. baShell(
"system", "killall TextEdit", "", "", "" ). |
||||||||||||||||||||||||||||||||||||||||||
See also: |