Launch File (script step reference)

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

Launch File

Opens a file with the application that has registered it. This is the same application that would open it if you would manually double-click it.

SyntaxScript step badge

Launch File [ Select ; Result (error) ; FilePath ]


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 file to be launched

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 file was revealed in the Finder or Explorer
$$-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/mydata.doc”.


Launch File [ Select ; $ErrorCode ; "C:\readme.doc" ]

This will open the file in the application Microsoft Word.

Related script stepsScript step badge

Launch Application
Open Folder
Reveal File
Reveal Folder

Related functionFunction badge


Related topics

Troi File Plug-in online help (overview)

Online Help Page for Troi File Plug-in for 15 to 19 –> Launch File (filep7252) 2020-0520 15:43:33