I export data from Mr. Tides to iCal. I would like to add alarms to two
kinds of events. iCal's dictionary suggests this is possible, but when I
ask for an event's properties, there is nothing about alarms. The
following script fails with the error messages indicated in -- comments.
I'm trying to do this script under Leopard, and I'm wondering if this is
yet another example of half-baked scriptability in this new Mac OS.
tell application "iCal"
activate
tell calendar "Port Orford Tides"
set sunriseEvents to events whose summary contains "Sunrise"
repeat with thisEvent in sunriseEvents
tell thisEvent
make new open file alarm with properties
{filepath:"/Applications/Mail.app", trigger interval:-30}
-- "iCal got an error: AppleEvent handler failed."
end tell
end repeat
set sunsetEvents to events whose summary contains "Sunset"
repeat with thisEvent in sunsetEvents
tell thisEvent
make new sound alarm with properties {sound name:"Basso", trigger
interval:30}
-- "iCal got an error: AppleEvent handler failed."
end tell
end repeat
end tell
end tell
--
schram@[EMAIL PROTECTED]
is a filtered spam magnet. Email replies may get lost.
Try <http://public.xdi.org/=chris.schram>
instead.
--
Posted via a free Usenet account from http://www.teranews.com