Launch Application (script step reference)

By May 1, 2017May 20th, 2020Online Help, Troi File Plug-in
Troi File Plug-in for FileMaker Pro

Launch Application

Opens an application in the Finder or Explorer.

SyntaxScript step badge

Launch Application [ Select ; Result (error) ; FilePath ; Parameters ]


Select entire contentsreplaces 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
FilePaththe 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


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:

0no errorThe application was launched
$$-35nsVolErrNo such volume (Wrong disk name or not mounted)
$$-43fnfErrFile not found
$$-50paramErrParameter error

Other errors may be returned.

Originated in

Troi File Plug-in 9.0


FileMaker Pro 16 to 19


You can use FileMaker styled paths, like “filewin:/C:/MyFiles/test.exe”.


Launch Application [ Select ; $ErrorCode ; “C:\application.exe” ]

Related script stepsScript step badge

Launch File
Open Folder
Reveal File
Reveal Folder

Related functionsFunction badge


Related topics

Troi File Plug-in online help (overview)

Online Help Page for Troi File Plug-in for 15 to 19 –> Launch Application (filep7314) 2020-0520 15:41:58