MMScript_CreateIntervalScriptEvent
- Description
Use this function to create a Script Event that occurs after a specified amount of time. This type of Script Event can also be repeating so that it will call your script every so many days, hours, minutes, and/or seconds.
- Return Type
- Text
- Format
- MMScript_CreateIntervalScriptEvent ( EventName ; Script ; Interval ; DB ; EventValue ; StartDateTime ; Repeat ; Persistent ; Priority ; CurrentScript )
- Required Parameters
- EventName
The Name of the Event you are Creating.
- Script
The Script to call.
- Interval
The amount of time to wait before the Event occurs (Format: "1d 2h 3m 45s").
- EventName
- Optional Parameters
- DB
The Database that contains the Script.
- EventValue
Any user defined Value you can retrieve when the Event occurs.
- StartDateTime
A Date, Time, or Timestamp of when you want the Event to occur the first time.
- Repeat
True or False if you want the Event to Repeat until you cancel it.
- Persistent
True or False if you want this Event to be saved between FileMaker sessions.
- Priority
Defines how interruptive the Event is. (Specify "Low", "Normal", "High", or "Highest".)
Low - The Event occurs if the user has not done anything for 30 seconds or more.
Normal - The Event may occur even if the user has done something within the last 30 seconds, but no script is running.
High - The Event may occur if the user is running a script that is currently paused.
Highest - The Event attempts to run even if there is already a script running.
- CurrentScript
Defines what to do with the currently running script (if any). (Specify "Halt", "Exit", "Resume", or "Pause".)
- DB
- Related Items
- MMScript_CancelScriptEvent, MMScript_CreateDateTimeScriptEvent, MMScript_CreateIdleScriptEvent, MMScript_CreateImmediateScriptEvent, MMScript_CreateXMLScriptEvent, MMScript_ListScriptEvents