Subscribe
property todoCalendar: "Chores"
tell application "iCal"
tell calendar todoCalendar
set theTodo to last todo whose summary contains "mow lawn"
set doneDate to (completion date) of theTodo
try
set newDueDate to doneDate + 7 * days
make new todo at end with properties {description:"mow lawn", summary:"mow lawn", due date:newDueDate}
on error
display dialog "The last mow lawn task has not been completed."
end try
end tell
end tell
--Time Warner Cable bills
--Run on the 23rd of each month
tell application "iCal"
set theDay to 14 --day the bill is due
set theSummary to "Pay Time Warner Bill" --summary of todo
set theURL to "https://payxpress.timewarnercable.com/" --url (if any)
set thePriority to 5 -- medium priority
set today to current date
set theMonth to (month of today as number) + 1
if (theMonth > 12) then
set theMonth to 1
set theYear to (year of today as number) + 1
else
set theYear to year of today as number
end if
set dueDate to today
set month of dueDate to theMonth
set day of dueDate to theDay
set year of dueDate to theYear
make new todo at the end of todos of calendar "Bills" with properties {summary:theSummary, due date:dueDate, priority:thePriority, url:theURL}
end tell
You are not logged in, either login or create an account to post comments
There's a 'repeat' choice. Adjust to your liking. Or am I missing something?
posted by filmgeek at 10:48 AM on October 2, 2007