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
Runs a script in any open FileMaker file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
FM | 1.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
FileName | The name of the FileMaker File that contains the script | ||
ScriptName | The name of the script to run. Or the ID of the script in the current file. |
||
ScriptParameter | The Parameter to Pass to the script. | Optional | |
ScriptControl | Available in MBS FileMaker Plugin 9.3 or newer. The script control mode. Can be Pause, Halt, Exit or Resume. Default is Pause. |
"pause" | Optional |
Trigger a script
Let(
[
trigger = MBS("FM.RunScript"; Get(FileName); "Triggered Script"; "")
];
1
)
Trigger script by ID:
MBS( "FM.RunScript"; "test.fmp12"; "12" /* PrintRecords */; "Hello World")
This function checks for a license.
Created 18th August 2014, last changed 17th April 2023