The ToDo Pier app has a dependency on Sean DeNigris's Scheduler so that it can run tasks at specific times. This is done by:
(PRScheduledTaskExamples newForKernelNamed: 'Pier') reportOfHistoryOnPageAt: '/John Borden/Todo/Add a History Report/Report'
/John Borden/Todo/Add a History Report/Report). This can be an empty page.
(PRPathLookup start: (PRKernel instanceNamed: 'Pier') root path: '/John Borden/Todo/Add a History Report') automate.
This will change the task to be marked as completed and hidden from the menus. If the task was given a repeat duration, it will execute the above code with that frequency.
Runs every 5 hours:
Report generated on 2 March 2021 18:59
|Task Name||Next Run||Run Count|
|Find Broken Links||Mar-03||184|
|Add a History Report||Mar-02 5:59 pm||874|
|Update Overdue Repeating Tasks||Mar-03||184|
|Add a Scheduler Report||Mar-02 6:59 pm||870|
|Update Tasks for Rain||Mar-02 5:59 pm||728|
(PRScheduledTaskExamples newForKernelNamed: 'Pier') reportOfSchedulerAt: '/John Borden/Todo' onPageAt: '/John Borden/Todo/Add a Scheduler Report/report'