Re: Scripting iCal
Re: Scripting iCal
- Subject: Re: Scripting iCal
- From: Robert Poland <email@hidden>
- Date: Wed, 12 Oct 2005 14:08:04 -0600
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 "Wednesday,
October 12, 2005 10:00:00 AM", end date:date "Wednesday, October 12,
2005 11:00:00 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
Thanks Paul,
One question, I don't see where the alarm, if set 5 days before, will
sound EVERY day at the selected time. Or do I have to set an alarm
every day for the 5 days?
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
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