Page 1 of 1

Schedule Chores to run only certain days?

Posted: Fri Jan 03, 2014 4:38 pm
by erik664
Hello, and thanks in advance.

It doesn't seem possible to me to schedule a chore so that it runs on only certain days. I would like to schedule a chore to run only Monday-Friday, and not on Saturday and Sunday.

Is there any way to accomplish that? The only way I can think of is to make multiple copies of the same chore for each day, and set them to run every week. Is there a more elegant solution?

Thanks,

Re: Schedule Chores to run only certain days?

Posted: Fri Jan 03, 2014 4:54 pm
by Alan Kirk
erik664 wrote:It doesn't seem possible to me to schedule a chore so that it runs on only certain days.
Correct.
erik664 wrote:I would like to schedule a chore to run only Monday-Friday, and not on Saturday and Sunday.

Is there any way to accomplish that? The only way I can think of is to make multiple copies of the same chore for each day, and set them to run every week. Is there a more elegant solution?
The other way of doing it is to put in the Prolog of the first process some code to check what the day of the week is, and to quit the chore if it's Saturday or Sunday. For the way of determining the day of week, see the heading "To Get The Weekday Of A Date As A Value" in this article.

Re: Schedule Chores to run only certain days?

Posted: Fri Jan 03, 2014 5:56 pm
by erik664
Thanks Alan,

The code you linked to in the other thread is perfect. That was exactly the kind of solution I had in mind.