<div dir="ltr">I am working on an application which requires task scheduler <span class="gmail_default" style="font-size:small">like cron on UNIX or Task Manager on Windows. </span><span class="gmail_default" style="font-size:small">In </span>the swiki <span class="gmail_default" style="font-size:small">, there is </span>a <span class="gmail_default" style="font-size:small">page about </span><a href="http://wiki.squeak.org/squeak/1871">Refactored Date and Time Classes</a><span class="gmail_default" style="font-size:small"> which mentions #Schedule in the context of TV programs. I have figured out how to set up, but I can not figure out how to use it productively.</span><div><br><div><div class="gmail_default" style="font-size:small">My simple use case is: </div><div class="gmail_default" style="font-size:small">a. create an instance of #Schedule </div><div class="gmail_default" style="font-size:small">b. Use the schedule to write a string to the Transcript based on the contents of the schedule.</div><div class="gmail_default" style="font-size:small"><br></div><br>|sampleSchedule  rightNow cr |<br><br>rightNow := DateAndTime now.<br>cr := String cr.<br><br>sampleSchedule := Schedule starting: rightNow  ending: rightNow + 20 minutes .<br><br>sampleSchedule schedule: {Duration minutes: 1. Duration minutes: 3}.<br>sampleSchedule  scheduleDo:[:each |Transcript show: each asString, String cr].</div><div><div class="gmail_default" style="font-size:small">>> This results in all of the schedule items being written to the Transcript immediately, rather at the schedule time for each.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">How to I use a schedule to run a block at the time specified by the schedule. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I have looked at #Delay, but it has a limit of ~six days which will not work for me.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">-jrm</div><br><div class="gmail_default" style="font-size:small"></div><br><div><span class="gmail_default" style="font-size:small"><br></span></div><div><span class="gmail_default" style="font-size:small"><br></span></div></div></div></div>