• 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
Re: iCal Todo notes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal Todo notes


  • Subject: Re: iCal Todo notes
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 21 Nov 2003 09:30:29 -0800

On 11/21/03 8:50 AM, "Michael Grant" <email@hidden> wrote:

> On Nov 21, 2003, at 9:38 AM, Dr. Max Bonilla wrote:
>
>> Is there a way to script a note in a todo in iCal? I can script the
>> title,
>> but I see there is a field for notes, which I can enter manually, and
>> would
>> like to script it if possible.
>
> I believe that's the 'summary' property of the 'todo' class.
> Michael

No. The 'summary' property is what you and I would call the name, or title.
For some reason, both 'event' and 'todo' have these 'summary' properties
instead of names. it means that you can't refer to

todo "Do the Laundry" of calendar 1

but always have to do a 'whose' search:

first todo of calendar 1 whose summary is "Do the Laundry"

In this case, that's probably OK, since chances are that you probably have
several events and todos with the same name. A special implementation would
have to be made; Entourage does this by mapping 'event "Whatever"' and 'task
"Whatever"' to the first such-named event or task to have been created. It's
a lot faster than a 'whose' search but can lead to problems if you don't
know you have more than one - it's really only good as a quick error test if
you have _none_ or only care about the first one. Otherwise you need to do
an 'every' search and loop through the results, just as in iCal:

set allLaundries to every todo of calendar 1 whose summary is "Do the
Laundry"
repeat with i from 1 to (count allLaundries)
...etc.

But no, you can't get the notes of todos. It's always a good idea to test
out something first before suggesting it as an answer here. Otherwise you
can mislead people. I imagine Max already has tried 'summary'.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: iCal Todo notes
      • From: Michael Grant <email@hidden>
References: 
 >Re: iCal Todo notes (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: iCal Todo notes
  • Next by Date: Re: iCal Todo notes
  • Previous by thread: Re: iCal Todo notes
  • Next by thread: Re: iCal Todo notes
  • Index(es):
    • Date
    • Thread