• 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: iCal - New Attendee
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal - New Attendee


  • Subject: Re: iCal - New Attendee
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 25 Nov 2004 07:47:27 -0800

On 11/24/04 1:48 PM, "Manfred M. Strasser" <email@hidden> wrote:

> I am trying to add attendees to an event in iCal.  This code should
> work:
>
> tell newEvent
>      make new attendee at end of attendees with properties {display
> name:"Name Name", email:"email@hidden"}
> end tell
>
> I get an "NSContainerSpecifierError".

Oh, brother, I thought I'd hit every iCal bug, and you've found yet another.
The piece of junk has more bugs than things that work.

Believe it or not, you have to use 'beginning', not 'end', when there are no
attendees as yet:

tell newEvent
     make new attendee at beginning of attendees with properties {display
name:"Name Name", email:"email@hidden"}
end tell
--> (works)

After you've got at least one attendee, you can add the others to the end if
you want, or to the beginning. Whichever you do, it actually adds them to
the end in the UI list, so you might as well just stuck with 'beginning' in
a repeat loop and avoid tests and conditional code for whether it has any
attendees yet or not.  It's ridiculous.


--
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

References: 
 >iCal - New Attendee (From: "Manfred M. Strasser" <email@hidden>)

  • Prev by Date: iCal - New Attendee
  • Next by Date: Re: writing into an excel sheet
  • Previous by thread: iCal - New Attendee
  • Next by thread: Play sound
  • Index(es):
    • Date
    • Thread