iCal event scripting
iCal event scripting
- Subject: iCal event scripting
- From: "John Tuttle" <email@hidden>
- Date: Mon, 12 May 2003 13:42:43 -0500
Here's a new one... for me at least.
I've been working on basic iCal scripting and have hit an interesting
glitch.
The following script will give me all of the information requested,
however, the creation of a new event doesn't do anything in iCal, nor
does it return an error.
Any ideas out there?
Script:
tell application "iCal"
set calcount to count of calendars
set x to 1
set cal_list to "List of Calendars
"
repeat calcount times
set eventcount to count of events of calendar x
set cal_list to cal_list & "
" & x & " " & title of calendar x & " - " & eventcount & " events"
set x to x + 1
end repeat
set myevent to summary of event 1 of calendar 1
set mydate to start date of event 1 of calendar 1
set mydate to date "Monday, May 12, 2003 9:00:00 AM"
make new event at calendar 1 with data {summary:"New Item", start
date:mydate, status:none, allday event:true}
end tell
--
John Tuttle
Yourexpedition
--
John Tuttle
Vice President of Technology
Yourexpedition
612.333.1209
http://www.yourexpedition.com
Providing inspiration and guidance to succeed in lifes expeditions.
_______________________________________________
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.