• 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: CalendarLib EC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CalendarLib EC


  • Subject: Re: CalendarLib EC
  • From: "Nigel Garvey" <email@hidden>
  • Date: Tue, 5 Dec 2017 18:23:09 +0000

Jean-Christophe Helary wrote on Tue, 5 Dec 2017 20:54:14 +0900:

>use script "CalendarLib EC" -- put this at the top of your scripts
>use scripting additions
>
>set d1 to current date
>set d2 to d1 + 1 * hours
>set theStore to fetch store
>set theCal to fetch calendar "test" cal type cal cloud event store
theStore
>-- change to suit
>set theEvent to create event event store theStore destination calendar
>theCal event summary "A test event" starting date d1 ending date d2
event
>location "Around here" event description "some notes" without runs all
day
>set theEvent to modify zone event theEvent time zone "Asia/Tokyo"
>store event event theEvent event store theStore
>return event identifier for event theEvent
>
>I get a weird error message that says:
>
>"The variable newEvent is not defined", and it points at the theEvent
I've
>highlighted above...

Try downloading the latest version of the library (whose modification
date appears to be six hours ago). There's a label mismatch in the
'modify zone' handler in the earlier version I had, which seems to have
been fixed in the latest version.

<https://www.macosxautomation.com/applescript/apps/Script_Libs.html#Cale
ndarLib_EC>

NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: CalendarLib EC
      • From: "Nigel Garvey" <email@hidden>
  • Prev by Date: Re: CalendarLib EC
  • Next by Date: Re: CalendarLib EC
  • Previous by thread: Re: CalendarLib EC
  • Next by thread: Re: CalendarLib EC
  • Index(es):
    • Date
    • Thread