Re: Scripting iCal
Re: Scripting iCal
- Subject: Re: Scripting iCal
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 12 Oct 2005 09:19:48 -0700
- Thread-topic: Scripting iCal
On 10/12/05 8:49 AM, "Robert Poland" <email@hidden> wrote:
> I am thinking of moving this to iCal (with an alarm). It all looks
> straight forward, except that I don't see any simple way to notify me
> X days in advance.
You haven't seen all the different types of alarm elements in the 'event'
entry in the dictionary? You can take you pick (or include more than one)
between display alarm, mail alarm, sound alarm, open file alarm. Since it's
an element, not a property, you can only make it after making the event.
tell application "iCal"
set e to make new event at end of events of calendar "Work" with
properties {summary:"Meeting", start date:date "10/12/05 10 am", end
date:date "10/12/05 11 am"}
make new display alarm at end of display alarms of e with properties
{trigger interval:-30}
end tell
Note that for both the event and the alarm, you have to go through the
rigmarole of making them at the end or beginning of every event/alarm of the
chosen type (element), in spite of of he fact that this isn't supposed to be
necessary any more in Cocoa apps in Tiger (or, according to some official
sources, Panther). The iCal developers don't seem to have taken note. You
still need it.
--
Paul Berkowitz
_______________________________________________
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