Re: CalendarLib EC
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