Scripting Palm Desktop
Scripting Palm Desktop
- Subject: Scripting Palm Desktop
- From: Irwin Poche <email@hidden>
- Date: Wed, 03 Oct 2001 06:38:02 -0500
I have once again fooled myself into trying to do some AS'ing of the Palm
Desktop (ver 2.6.3).
After a couple of hours of experimentation I am at a total loss. I cannot
figure out how to get any calendar items at all.
The appropriate classes appear to be event and day event (see below) but no
matter what forms I use, I get back nothing. My eventual goal is to set the
primary category of all items based on their text.
-Irwin
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
Class day event: A date book event that spans whole days
Elements:
attachment 'prop', by numeric index
Properties:
object id record [r/o] -- the object id of the event
title international text -- the title of the event
start date anything -- the start date of the event; as date, string, or
integer (seconds since Jan 1, 1904)
duration small integer -- the duration of the event (in days)
annual boolean [r/o] -- Does the event repeat annually? (Annual events
have a duration of one day)
annual reminder small integer [r/o] -- the number of days before the
event start date to place a reminder to do item in the date book (only for
annual events)
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