launch.anything
| Syntax |
launch.anything (path)
|
| Params |
path is a file path name pointing to the file you wish to launch. This path can point to a document, an application, a Control Panel, or anything else the Finder can launch if you are running under System 7.
|
| Action |
Launches the file named by path, opening its owning application if necessary.
|
| Returns |
True.
|
| Examples |
launch.anything ("System:System Folder:Control Panels:Sound") » true
Assume you have a word processing document called "Great Frontier Ideas" in a folder on your "System" hard disk called "Hot Stuff." You could open that document and launch its associated word processing application by typing and executing:
|
| Errors |
If you attempt to launch a non-existent document or supply an incorrect or incomplete path name to the document or application, an error will occur.
|
| Notes |
This verb works only on a Macintosh running System 7.0 or later. Used on a Macintosh running an earlier version of the system, this verb returns false. This verb always brings the Finder to the front before it launches the application or document in path. For launching applications and documents, launch.application and launch.appWithDocument are considerably faster than this verb.
|
| See Also |
launch.application
|