Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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