MBS( "FM.RunScriptLater"; /* Runs a script in any open FileMaker file. */$DelaySeconds; /* The Number of Seconds to wait before running the script.e.g. 10 */
$FileName; /* The name of the file that contains the script to be rune.g. Get(Filename) */
$ScriptName; /* The exact name of the script to rune.g. "TestScript" */
$ScriptParameter) /* Optional; Optional, he Script Parameter to pass to the script */
Less

Parameters

Parameter

Description

Example value

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

OptionalOptional, he Script Parameter to pass to the script

Result

Returns OK on success or error message on failure.

Description

Runs a script in any open FileMaker file.
You can also pass a text string to the Script as a Parameter. The parameter can be retrieved by using Get(ScriptParameter) in the script that plug-in is calling.

With plugin version 6.0 or newer the script name can be a script ID number. In that case the plugin queries the script name for the given script ID. This allows to call scripts by ID and avoid problems if scripts are later renamed.