Re: [iCal] where is the note, what is the sequence?
Re: [iCal] where is the note, what is the sequence?
- Subject: Re: [iCal] where is the note, what is the sequence?
- From: "John W. Baxter" <email@hidden>
- Date: Sat, 24 Jan 2004 13:02:59 -0800
On 1/23/2004 20:58, "Matyas Ferenc Farkas" <email@hidden> wrote:
>
hi list!
>
>
there is the class description of the iCal's todo:
>
Class todo: This class represents an todo
>
...
>
Properties:
>
...> sequence integer -- The todo version
>
...
>
summary Unicode text -- The todo summary
>
...>
>
what does the sequence mean, and where is the property variable for
>
manipulating the note of the todo?
The sequence seems to relate to the version of iCal which created the todo
item. But *WHAT* the relationship is is not clear.
When I run this code:
tell application "iCal"
{get sequence of first todo of calendar 2, get sequence of last todo of
calendar 2}
end tell
I get:
{2, 3}
I then added a fresh todo, and it got a sequence of 1:
tell application "iCal"
{get properties of last todo of calendar 2, sequence of todo -2 of
calendar 2}
end tell
Reformatting slightly:
{
{priority:0,
due date:missing value,
uid:"A92B06B6-4EAE-11D8-9587-003065F8D83E",
sequence:1,
url:missing value,
summary:"Summary for AppleScript-users list",
class:todo,
stamp date:date "Saturday, January 24, 2004 12:48:44",
completion date:missing value
},
3
}
So for some reason iCal "1.5.2" is making sequence 1 todos, although earlier
versions made sequence 2 and 3. Or something like that.
It's probably of little interest unless older todo forms don't have all the
properties that newer ones do, but that doesn't seem to be the case.
The text of the todo is the summary property:
tell application "iCal"
get summary of last todo of calendar 2
end tell
--> "Summary for AppleScript-users list"
--John
_______________________________________________
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.