Re: Palm Desktop: how to make a datebook entry or todo?
Re: Palm Desktop: how to make a datebook entry or todo?
- Subject: Re: Palm Desktop: how to make a datebook entry or todo?
- From: Andrew Hinton <email@hidden>
- Date: Mon, 04 Feb 2002 16:31:40 -0500
Thanks John... It was that "set my_new_event to a reference to event (create
event)" line that I really needed!
Now to figure out how to make an attached memo with an email's body text in
it....wheee!
--ach
::email@hidden::wrote on 2/4/02 3:19 PM:
>
I know the dictionary is pretty sad however:
>
>
Class event: A date book event
>
Elements:
>
attachment by ID, by numeric index
>
Properties:
>
object id record [r/o] -- the object id of the event
>
title international text -- the title of the event
>
date anything -- the date of the event; as date, string, or
>
integer (seconds since Jan 1, 1904)
>
start time anything -- the start time of the event; as date,
>
string, or integer (seconds since midnight)
>
end time anything -- the end time of the event; as date, string,
>
or integer (seconds since midnight)
>
duration small integer -- the duration of the event (in minutes)
>
alarm boolean -- Does the event have an alarm?
>
alarm time small integer -- the alarm time (in minutes before the
>
event start time)
>
primary category reference -- the primary category of the event;
>
as object or string
>
secondary category reference -- the secondary category of the
>
event; as object or string
>
all fields record [r/o] -- a record containing all fields of the
>
event
>
>
Seems to work. The trick is to be able to target your new event. This
>
works for me
>
>
tell application "Palm Desktop"
>
set my_new_event to a reference to event (create event)
>
set title of my_new_event to "Lunch with Bob"
>
set start time of my_new_event to "3:30 PM"
>
set end time of my_new_event to "4:30 PM"
>
end tell
>
>
You can use the change almost all of the properties by using the
>
dictionary entries.
>
>
jmc
>
--
email@hidden
www.drewspace.com