Launch Application | 
Opens an application in the Finder or Explorer.
Syntax
Launch Application [ Select ; Result (error) ; FilePath ; Parameters ]
Options
| Select entire contents | replaces the entire contents of a field with the result. If not checked the result replaces the currently selected portion of the field | 
| Result (error) | an error code | 
| FilePath | the path to the application to be launched | 
| Parameters | (optional) extra parameters to be sent to the launching application (Windows only) | 
Returned Result
Data type returned
Error code
Result
The returned result is an error code. An error always starts with 2 dollars, followed by the error code. You should always check for errors. Returned error codes can be:
| 0 | no error | The application was launched | 
| $$-35 | nsVolErr | No such volume (Wrong disk name or not mounted) | 
| $$-43 | fnfErr | File not found | 
| $$-50 | paramErr | Parameter error | 
Other errors may be returned.
Originated in
Troi File Plug-in 9.0
Compatibility
FileMaker Pro 18 to FileMaker Pro 22 (2025)
Considerations
You can use FileMaker styled paths, like “filewin:/C:/MyFiles/test.exe”.
Example
Launch Application [ Select ; $ErrorCode ; “C:\application.exe” ]
Related script steps
| Launch File | 
| Open Folder | 
| Reveal File | 
| Reveal Folder | 
Related functions
| TrFile_GetCodeSignInfo | 
| TrFile_Launch | 
Related topics
Troi File Plug-in online help (overview)