• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mark todo as complete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mark todo as complete


  • Subject: Mark todo as complete
  • From: Darren Gapultos <email@hidden>
  • Date: Wed, 26 Apr 2006 12:26:16 -0700

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:

This email sent to email@hidden

  • Prev by Date: Using a script with WGM [was Re: Struggling with a script]
  • Next by Date: Re: scripting Word top copy text - should be simple, but ain't
  • Previous by thread: iCal Script
  • Next by thread: ASR Error
  • Index(es):
    • Date
    • Thread