• 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: Jean-Christophe Helary <email@hidden>
  • Date: Tue, 5 Dec 2017 20:54:14 +0900

> On Dec 5, 2017, at 15:32, Shane Stanley <email@hidden> wrote:

>> So I probably got something wrong...
>
> "Japanese Standard Time" is not a valid time zone name in this context -- it
> really requires a zone ID. Try "Asia/Tokyo".

Thank you Shane.

I seem to still miss something with this code:

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

Jean-Christophe


>
> You can find out the valid entries like this:
>
> use AppleScript version "2.4" -- Yosemite (10.10) or later
> use framework "Foundation"
> use scripting additions
>
> current application's NSTimeZone's knownTimeZoneNames() as list
>
> --
> Shane Stanley <email@hidden <mailto:email@hidden>>
> <www.macosxautomation.com/applescript/apps/
> <http://www.macosxautomation.com/applescript/apps/>>, <latenightsw.com
> <http://latenightsw.com/>>
>
>
> _______________________________________________
> 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

Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com


 _______________________________________________
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: Shane Stanley <email@hidden>
References: 
 >CalendarLib EC (From: Jean-Christophe Helary <email@hidden>)
 >Re: CalendarLib EC (From: Shane Stanley <email@hidden>)
 >Re: CalendarLib EC (From: Jean-Christophe Helary <email@hidden>)
 >Re: CalendarLib EC (From: Shane Stanley <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