Error getting tags :
error 404Error getting tags :
error 404 launch document | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
launch document
Basics
Expander triangle
Type
Command
Syntax

launch document filename

Introduced
2.7.1
Changed
2.9
Environment
Desktop,Web
Platform Support
Mac OS X,Windows,Linux
Security
Process
Summary
Use the launch command to open a document with the operating system's default program.
Examples

launch document "/myProjects/myRevolutionProject/help.pdf"

launch document (the cSampleImage of me)

Additional Comments
Expander triangle

launch document allows you to open the file without specifying an application.

The document will be opened using the standard shell association on Windows and Launch Services on Mac OS X.

This means that launch document will have the same result as double clicking the file in Windows Explorer and Mac OS X Finder.

If you want to launch a document with a specific application, use the launch command instead, which allows an optional documentName parameter for this purpose.

If launching the document fails, an error message will be placed into the result, otherwise the result will be empty. If non-empty, the message will be one of the following:

"can't open file" - the file was not found or is not accessible

"no association" - no application was found to open the document

"request failed" - an attempt was made to launch the appropriate application but it was unable to fulfill the request

"no memory" - the system ran out of resources or memory while trying to fulfill the request

User Comments
Expander triangle