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
Evaluates an expression after a delay.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Schedule | 5.2 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
DelaySeconds | The Number of Seconds to wait before running the script. | 10 | |
Expression | The expression to evaluate. | "Get(CurrentTimeStamp)" | |
ScriptFileName | The name of the file that contains the script to be run. | Get(Filename) | Optional |
ScriptName | The exact name of the script to run. | "TestScript" | Optional |
RepeatDelay | The number of seconds after which to repeat the script call. | 30 | Optional |
Returns reference number or error.
Try it:
Set Variable [$expression; Value:"MBS(\"Log\"; \"Evaluate works\")"]
Set Variable [$ref; Value:MBS( "Schedule.EvaluateAfterDelay"; 5; $expression )]
Show/Hide format bar in German:
Set Variable [ $r ; Value: MBS( "Schedule.EvaluateAfterDelay"; ,1; "MBS( \"Menubar.RunMenuCommand\"; List(\"Ansicht\"; \"Formatierungsleiste\") )") ]
Set scrollbar elasticity after delay of 0.1 seconds:
Set Variable [ $r ; Value: MBS( "Schedule.EvaluateAfterDelay"; 0.1; "MBS(\"Window.Scrollbar.SetScrollElasticity\"; 0; \"none\")") ]
Open Scriptworkspace:
# won't work directly in script as we need to delay, let the script end and then the menu command can run:
Set Variable [ $r ; Value: MBS( "Schedule.EvaluateAfterDelay"; 0.1; "MBS( \"Menubar.RunMenuCommand\"; 51319 )") ]
This function checks for a license.
Created 21st May 2015, last changed 3th June 2022