Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Launches the file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 2.7 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
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. |
"/Users/cs/Desktop/Notes.rtf" | Optional |
NewInstance | Available in MBS FileMaker Plugin 7.2 or newer. Whether to launch new app instance on Mac. Default is 0. |
1 | Optional |
Returns "OK" or error.
Launch two text files in Textedit:
MBS( "Files.Launch"; "/Applications/TextEdit.app"; "/Users/cs/Desktop/filme.rtf"; "/Users/cs/Desktop/test.rtf" )
Run notepad on Windows with a text file:
MBS( "Files.Launch"; "notepad.exe"; "C:\Users\Christian\Desktop\test2.txt")
Launch iMessages app:
MBS( "Files.Launch"; "/Applications/Messages.app")
Launch Mail application:
MBS( "Files.Launch"; "/Applications/Mail.app")
Restart FileMaker with same database:
Set Variable [$dbpath; Value:Get ( FilePath )]
Set Variable [$dbpath; Value:MBS( "Path.FileMakerPathToNativePath"; $dbpath )]
Set Variable [$apppath; Value:MBS( "App.GetProcessPath" )]
Set Variable [$r; Value:MBS( "Files.Launch"; $apppath; $dbpath; 1 )]
Exit Application
Open Website in Firefox on Windows:
MBS( "Files.Launch"; "C:\Program Files\Mozilla Firefox\Firefox.exe"; "http://www.mbsplugins.de" )
Open website in Google Chrome on Windows:
MBS( "Files.Launch"; "C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe"; "http://www.mbsplugins.de" )
Launch System Events app:
MBS( "Files.Launch"; "/System/Library/CoreServices/System Events.app" )
This function checks for a license.
Created 18th August 2014, last changed 5th June 2021