Re: iCal and Applescript (beginner)
Re: iCal and Applescript (beginner)
- Subject: Re: iCal and Applescript (beginner)
- From: pete boardman <email@hidden>
- Date: Sun, 2 Oct 2005 10:13:51 +0100
On 2 Oct 2005, at 09:58, Bernard Bernu wrote:
I succeeded to get events from calandars but for instance not to
make new ones.
I tried that :
tell application "iCal"
set thecal to first calendar whose title is "EnAcT-Val"
set eventList to every event of thecal
set new_event to make new event at thecal with properties
{start date:date "lundi 3 octobre 2005 9:00:00", end date:date
"lundi 3 octobre 2005 12:00:00", summary:"essai"}
end tell
Try something like this
tell application "iCal"
set thecal to first calendar whose title is "EnAcT-Val"
set newEvent to make new event at end of events of thecal
set properties of newEvent to {start date:(current date), end
date:(current date), summary:"essai"}
end tell
(I've changed the dates to something simpler and non-French :-))
Pete
_______________________________________________
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