I'm new to scripting and I just want a basic script that will spit out your uncompleted todo tasks in a dialog box and you can just pick one to mark as complete. This is what I have so far, does anyone want to fix it up?
display dialog "Enter Calendar Name" default answer "" set CalendarName to the text returned of the result
set theCalendar to CalendarName tell application "iCal" set {myList, myComps, mySumms} to {{}, completion date, summary} of todos of calendar theCalendar repeat with myItem from 1 to count of myComps if (item myItem of myComps) contains missing value then set the end of myList to (item myItem of mySumms) end repeat end tell
set theChoice to choose from list myList with prompt "Choose todo" OK button name "Choose" without multiple selections allowed and empty selection allowed
|