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
Schedule.StartScriptAtTimeStamp
Runs a script in any open FileMaker file.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
Schedule
|
5.2 |
✅ Yes
|
✅ Yes
|
❌ No
|
❌ No
|
✅ Yes
|
MBS( "Schedule.StartScriptAtTimeStamp"; TimeStamp; FileName; ScriptName { ; ScriptParameter; RepeatDelay } )
More
MBS(
"Schedule.StartScriptAtTimeStamp"; /* Runs a script in any open FileMaker file. */
$TimeStamp; /* The timestamp at which to call the script. Plugin checks regularly if time stamp is reaches and calls as soon as current time is greater or equal the given timestamp. So calls can be delayed if FileMaker is busy!e.g. Get(CurrentTimeStamp)+60 */
$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 */
$RepeatDelay) /* Optional; The number of seconds after which to repeat the script call.e.g. 30 */
Less
Parameters
Parameter |
Description |
Example |
Flags |
TimeStamp |
The timestamp at which to call the script. Plugin checks regularly if time stamp is reaches and calls as soon as current time is greater or equal the given timestamp. So calls can be delayed if FileMaker is busy! |
Get(CurrentTimeStamp)+60 |
|
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 |
RepeatDelay |
The number of seconds after which to repeat the script call. |
30 |
Optional |
Result
Returns reference number or error.
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.
Please use Schedule.Release later to remove schedule from list. Non repeating scheduled items are free automatically for you.
You define the timestamp at which to call the script. Plugin checks regularly if time stamp is reaches and calls as soon as current time is greater or equal the given timestamp. So calls can be delayed if FileMaker is busy!
Our plugin does not provide persistence. You need to schedule things in your scripts if you need them. When FileMaker quits, the plugin forgets the list of schedules.
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.
FileMaker 19.2 adds a fmplugin extended privileges. You my need to add such an extended privileges to allow the plugin to trigger scripts. See FileMaker product documentation for details.
Examples
Run script in 10 seconds and than repeat every 10 seconds:
MBS( "Schedule.StartScriptAtTimeStamp"; Get(CurrentTimeStamp)+10; Get(FileName); "testScript"; "time passed"; 10 )
See also
Created 20th May 2015, last changed 27th January 2016
Schedule.StartScriptAtTime
-
Schedule.StartScriptOnIdle
Feedback: Report problem or ask question.