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 |
---|---|---|---|
DelaySeconds | The Number of Seconds to wait before running the script. | 10 | |
FileName | The name of the file that contains the script to be run | Get(Filename) | |
ScriptName | The exact name of the script to run. Or the ID of the script in the current file. |
"TestScript" | |
ScriptParameter | Optional, he Script Parameter to pass to the script | Optional |
Returns OK on success or error message on failure.
Trigger a script later
Let(
[
/*-----------------PARAMETERS--------------------*/
DelaySeconds = 5;
FileName = Get ( FileName );
ScriptName = "Triggered Script Demo 2";
ScriptParameter = "Some Data"
];
/*-------------------FUNCTION----------------------*/
MBS(
"FM.RunScriptLater";
DelaySeconds;
FileName;
ScriptName;
ScriptParameter
)
)
This function checks for a license.
Created 18th August 2014, last changed 17th April 2023