Re: Scripting iCal
Re: Scripting iCal
- Subject: Re: Scripting iCal
- From: Andrew Oliver <email@hidden>
- Date: Wed, 04 Feb 2004 13:36:18 -0800
There are two problems with your script.
First, properties are colon-delimited pairs, not prop = value pairs, so the
definition of your properies is wrong.
Secondly, iCal demands you specify where you want to create the event - and
not just in a particular calendar.
The following appears to work for me:
tell application "iCal"
set theItem to (make new event at end of calendar 1 with properties {start
date : date "Friday, 6 February 2004 7:35:00 AM", summary : "TheTitle"})
end tell
(watch the line breaks )
Andrew
:)
On 2/4/04 12:44 PM, "Ben Gummer" <email@hidden> wrote:
>
Hi everyone,
>
I am trying to write an applescript that makes a new item with a
>
certain start time, summary etc. I have tried the following code but it
>
doesn't work.
>
>
tell application "iCal"
>
set theItem to (make new event with properties {start date = date
>
"Friday, 6 February 2004 7:35:00 AM", summary = "TheTitle"})
>
activate
>
show theItem
>
end tell
>
>
Any help is great,
>
Ben Gummer.
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.