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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
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 | "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
)
)
Created 18th August 2014, last changed 16th September 2019
Feedback: Report problem or ask question.