Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mark todo as complete



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






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.