|Examples||Mac & Win||Server||Client||Guides||Statistic||FMM||Blog||Deprecated||Old|
Launches the file.
|Files||2.7||✅ Yes||✅ Yes||❌ No||❌ No||❌ No|
|AppPath||Native path to the application to launch.||"/Applications/TextEdit.app"|
|DocPath...||Optional, Native path to the document to pass as argument.
Must be text to distingush from flag, which are numbers.
|NewInstance||Available in MBS FileMaker Plugin 7.2 or newer.
Whether to launch new app instance on Mac.
Default is 0.
Returns "OK" or error.
DescriptionLaunches the file.
The OS will lookup what application is associated with the file type and launch the application asking it to open the document.
You can use this function to open a database file with FileMaker or your runtime solution. Query with Files.AppPath the path to your application. Then call Launch with that application path and your database file path.
Please use Files.LaunchFile to open a file and Files.Launch to open a file in a specific application.
Version 5.3 supports passing several DocPath parameters.
With version 7.2 the last parameter can be a number with 0 or 1 to define whether to run a new app instance.
Check also the Shell functions to run command line tools and get the output. This may work on the server, where the normal launch function may not work due to missing GUI.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat DocPath parameter as often as you need.
Launch two text files in Textedit:
Run notepad on Windows with a text file:
Launch iMessages app:
Launch Mail application:
Restart FileMaker with same database:
Open Website in Firefox on Windows:
Open website in Google Chrome on Windows:
Launch System Events app:
- Version 13.3
- Rewrote Files.LaunchFile function for macOS to use newer API.
- Version 8.1
- Improved Files.Launch to better handle passing flag as text.
- Version 7.2
- MBS FileMaker Plugin, version 8.1pr1
- Comparing Base Elements Plugin to MBS FileMaker Plugin
- MBS FileMaker Plugin, version 7.2pr4
- Restart FileMaker with same database
- MBS FileMaker Plugin, version 5.3pr1
- MBS Filemaker Plugin, version 4.2pr12
- MBS Filemaker Plugin 2.7 Release notes
- MBS Filemaker Plugin, version 2.7pr1
This function checks for a license.
Created 18th August 2014, last changed 5th June 2021