CNS Plug-ins

Schedule a Script

To schedule a script, use the MMScript_CreateDateTimeScriptEvent function. The format of the function is as follows:

MMScript_CreateDateTimeScriptEvent( EventName ; Script ; DateTime {; DB {; EventValue {; Persistent {; Priority {; CurrentScript }}}}} )

The quickest way to schedule a script using this function is:

MMScript_CreateDateTimeScriptEvent( “MyEvent” ; “MyScript” ; “8/15/2006 1:00:00 PM” )

The above code would run the script “MyScript” at 1pm on August 15, 2006. In this example, the Event Name is “MyEvent”. You can use this information in other functions such as, MMScript_UpdateScriptEventValue or MMScript_CancelScriptEvent to update this event.