Re: Scripting iCal
Re: Scripting iCal
- Subject: Re: Scripting iCal
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 4 Feb 2004 16:40:33 -0500
At 7:44 AM +1100 2/5/04, Ben Gummer 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
Maybe this will work.
set sd to date "Friday, February 6, 2004 7:35:00 AM"
tell application "iCal"
tell calendar 1 -- Modify as needed
set theItem to (make new event at end with properties
{start date:sd, summary:"TheTitle"})
activate
show theItem
end tell
end tell
-- Rob
_______________________________________________
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.