home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-03-19 | 1.2 KB | 19 lines | [TEXT/ttxt] |
-
- Verb scheduler.addTask
- Syntax scheduler.addTask (taskTime, scriptString, minutesBetweenRuns)
- Parameters taskTime is a date value, the time for the next run of the task.
- scriptString is a string that's run when the task is run.
- minutesBetweenRuns is the number of minutes between task runs. If it's 0, the task is deleted after its first run.
- Action Adds a new task to the scheduler's tasks table.
- Returns The address of the newly allocated task object.
- Examples Beeps the speaker an hour from now, and every hour:
- scheduler.addTask (clock.now () + 3600, "speaker.beep ()", 60)
- « suites.scheduler.tasks.task1
- Beeps the speaker once, an hour from now:
- scheduler.addTask (clock.now () + 3600, "speaker.beep ()", 0)
- « suites.scheduler.tasks.task2
- Notes This verb is implemented as part of the scheduler suite which also provides a menu-based interface to scheduler.addTask.
- All tasks are created in a sub-table in the scheduler suite called "tasks".
- The tasks table is checked once per minute to see if a task needs to be run. Therefore, very precise timing of tasks is not possible using this verb.
- Since scheduler.addTask is implemented as a script, you can change it to exactly suit your needs.
-