Error getting tags :
error 404Error getting tags :
error 404 launch | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
launch
Basics
Expander triangle
Type
Command
Syntax
launch [documentPath with] applicationPath
Introduced
1.0
Changed
1.1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Process
Summary
Starts up an application, optionally opening a document in the application.
Examples

launch "SimpleText"
launch "/Documents/Projects/test.txt" with myApp
launch it with (field "Application")

Additional Comments
Expander triangle

Use the launch command to start an application for the user to use.

Parameters:

The documentPath is the location and name of a file to open with the specified application. If no path is specified, the launch command assumes that the file is in the defaultFolder.

The applicationPath is the location and name of the application to start up. If no path is specified, the launch command assumes that the application is in the defaultFolder.

Comments:

When the launch command executes, the application being launched comes to the foreground. When the user quits, Revolution comes to the foreground.

If the application is already running, the launch command does nothing, and "Process is already open." is placed in the result function.

If no documentPath is specified, the following two statements are equivalent:

launch application

open process application for neither

Note: On OS X systems, you can use the launchcommand to start up an application, but not a Unix process. To work with a Unix process, use the shellfunction instead.

Tip: On Windows systems, you can also start up an application by using the shellfunction with the Windows "start" command:

get shell("start MyProgram.exe")

Changes to Revolution:

In versions before 1.1.1, when you quit the application, any applications that had been launched with the launch command were quit automatically on Windows systems.

User Comments
Expander triangle
User thumbnail
fmoyer@aol.com
StarStarStarStarStar
Jan 22, 2010
Launch "simpletext" will not work in OSX. It must be Launch "simpletext.app"