Re: Creating Display Alarms for iCal Events
Re: Creating Display Alarms for iCal Events
- Subject: Re: Creating Display Alarms for iCal Events
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 06 Apr 2004 23:13:23 -0700
On 4/6/04 6:16 PM, "Jason Bourque" <email@hidden> wrote:
>
I am in the process of creating new events in iCal. I get the new event to
>
work but when I try to set a display alarm for it it doesn't work.
>
>
Tell vNewEvent
>
Make new display alarm with properties {{class: display alarm, trigger
>
interval:-21600}}
>
end
It's the usual Cocoa need to for a location (at end or beginning) that
you're missing. Also there's no need to specify the class since you're
already specifying it when creating an instance of it via 'make new'.
tell app "iCal"
tell vNewEvent
make new display alarm at end of display alarms with properties
{trigger interval:-21600}
end tell
end tell
or
tell app "iCal"
make new display alarm at end of display alarms of vNewEvent with
properties {trigger interval:-21600}
end tell
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.