Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Runs a script after idle period.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FM 3.3 Yes Yes No No Yes
MBS( "FM.RunScriptIdle"; DelaySeconds; FileName; ScriptName { ; ScriptParameter } )   More


Parameter Description Example value
DelaySeconds The Number of Seconds to wait before running the script. Moving the mouse or using keyboard will reset the counter. 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
The Script Parameter to pass to the script


Returns OK on success or error message on failure.


Runs a script after idle period.
This script is called in FileMaker whenever no user activity has been for the given amount of time.
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.

see also Schedule.StartScriptOnIdle, FM.StopScriptIdle, FM.RunScript and FM.RunScriptLater.

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.


Start idle script:

Set Variable [$r; Value:MBS( "FM.RunScriptIdle"; 10; Get(FileName); "Trigger")]

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 30th January 2018

FM.RunScript   -   FM.RunScriptLater

Feedback: Report problem or ask question.

MBS Xojo Plugins