• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating Display Alarms for iCal Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Creating Display Alarms for iCal Events (From: Jason Bourque <email@hidden>)

  • Prev by Date: Re: Quark - setting justification dynamically
  • Next by Date: Re: Return of the Dummy(ies)
  • Previous by thread: Creating Display Alarms for iCal Events
  • Next by thread: Re: WWDC and AS
  • Index(es):
    • Date
    • Thread