app.startWithDocument
| Syntax |
app.startWithDocument (appName, docName)
|
| Params |
appName is the name of an application that has a table of glue scripts installed in the Frontier object database. docName is a file path name pointing to the document you wish to be opened by the application.
|
| Action |
Launches the application if it isn't running, and instructs it to open the document. All subsequent app.xxx verbs apply to this application.
|
| Returns |
True if the application is running and ready to receive Apple Events, false otherwise.
|
| Examples |
app.startWithDocument ("FileMaker", "System:Databases:Names & Addresses") » true
|
| Notes |
By passing the empty string for the docName parameter, Frontier 3.0 and later will prevent the newly-launched application from opening a default document. Call app.bringToFront after calling app.startWithDocument to make the application the new frontmost app. If the application is already running, app.startWithDocument will instruct it to open the specified document. By convention, the application table is at object database location system.verbs.apps.[appName]. The first time app.start or app.startWithDocument launches the application the user is prompted for the location of the application. Each subsequent time, unless the file has been moved or deleted, the launch takes place without any user interaction.
|
| See Also |
app.bringToFront
|