home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / System7 tools / Frontier / Scheduler Suite.sit / Scheduler Suite / DocServer Source Text next >
Encoding:
Text File  |  1992-03-19  |  1.2 KB  |  19 lines  |  [TEXT/ttxt]

  1.  
  2. Verb    scheduler.addTask
  3. Syntax    scheduler.addTask (taskTime, scriptString, minutesBetweenRuns)
  4. Parameters    taskTime is a date value, the time for the next run of the task.
  5. scriptString is a string that's run when the task is run.
  6. minutesBetweenRuns is the number of minutes between task runs. If it's 0, the task is deleted after its first run.
  7. Action    Adds a new task to the scheduler's tasks table.
  8. Returns    The address of the newly allocated task object.
  9. Examples    Beeps the speaker an hour from now, and every hour:
  10. scheduler.addTask (clock.now () + 3600, "speaker.beep ()", 60)
  11.     « suites.scheduler.tasks.task1
  12. Beeps the speaker once, an hour from now:
  13. scheduler.addTask (clock.now () + 3600, "speaker.beep ()", 0)
  14.     « suites.scheduler.tasks.task2
  15. Notes    This verb is implemented as part of the scheduler suite which also provides a menu-based interface to scheduler.addTask.
  16. All tasks are created in a sub-table in the scheduler suite called "tasks".
  17. 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.
  18. Since scheduler.addTask is implemented as a script, you can change it to exactly suit your needs.
  19.