iCal script
iCal script
- Subject: iCal script
- From: Alex Nonnemacher <email@hidden>
- Date: Fri, 1 Sep 2006 07:07:14 -0400
Hi,
I'm trying to write a script that will create a number of new events
at odd times, corresponding to a school bell schedule (7:44 to 8:28,
etc.). I would like the script to create a new period for each time
slot for the date selected in iCal. Here's the script I'm working on:
tell application "iCal"
activate
tell calendar 2
make new event at the end of events with properties {start
date:date "Thursday, August 31, 2006 7:44:00 AM", end date:date
"Thursday, August 31, 2006 8:24:00 AM"}
make new event at the end of events with properties {start
date:date "Thursday, August 31, 2006 8:28:00 AM", end date:date
"Thursday, August 31, 2006 9:08:00 AM"}
end tell
end tell
Where I'm having difficulty is with the date; I would like the script
to use the date currently shown in the iCal window, rather than a
date referenced in the script (start date:date "Thursday, August 31,
2006 ). That way, when I'm scheduling meetings for, say, two weeks
from the current date, all I have to do is bring up that date in iCal
and then run the script.
Any ideas?
Alex
_______________________________________________
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