• 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: Adding event to iCal with timezone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding event to iCal with timezone


  • Subject: Re: Adding event to iCal with timezone
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 27 Aug 2005 13:26:55 -0700
  • Thread-topic: Adding event to iCal with timezone

On 8/25/05 4:58 PM, "Tor Langballe" <email@hidden> wrote:

> I'm trying to do this with little success.
>
> I can:
>
> 1) Create an event with applescript, but without a specific timezone.
> Is this possible????

No. (Or should I say "No!!!!" ?) There is no 'time zone' property of an
event in iCal. Nor are preferences scriptable either.

> 2) Open a .ics file I create using an applescript, but these files
> don't specify what calendar I want them to go into,
>        and I get a dialog box asking me to select a calendar. Not good
> enough.

What do you mean "using an AppleScript", and what do you mean by "open"? You
just tell iCal to open the .ics file?

Unfortunately, iCal does not have a property of event similar to Entourage's
'iCal data' which can just be read from the file without opening it (using
the 'read' Standard Addition) and then used to make a new event. So unless
you want to try to write a very complicated handler parsing the .ics data
yourself (which is pretty well guaranteed to go wrong since you can't think
of everything and don't know which APIs iCal is using), there's no good way
of doing this. I suggest you try Entourage instead, where it's very easy.

> 3) As a worst case, I want to do 2) but change the selected calendar
> first, so the dialog box defaults to the correct calendar,
>       but I can't figure out this either...  Is there a way to change
> the selected calendar in iCal?

No. Although there's a read/write application property 'selection', it
doesn't seem to work with calendars, or events or todos, or selected text
either. Nothing at all. Not even for getting it. Useless. All you get from

    tell app "iCal" to get the selection

is "iCal got an error: Can't make selection into type reference." Bleahh.
File a bug.
--
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: 
 >Adding event to iCal with timezone (From: Tor Langballe <email@hidden>)

  • Prev by Date: Re: degrading script performance in Mail
  • Next by Date: Re: degrading script performance in Mail
  • Previous by thread: Adding event to iCal with timezone
  • Next by thread: Re: Adding event to iCal with time zone
  • Index(es):
    • Date
    • Thread