Create todos in iCal with calendar name

I creating a script that will help me track new projects. It goes through various task to create the things I typically need (ie: project folders, vhost, mail & address folders). I also have it create a calendar in iCal using the project name. Now what I need to do is add my various tasks to the todos for that calendar. The problem is I don’t know how to access the calendar by name. And since I’m creating it on the fly, I won’t know the calendar number.

Can anyone help out?

Browser: Safari 412.2
Operating System: Mac OS X (10.4)

Hi Dara,

This is what I do:

tell application "iCal"
	set myCal to first calendar whose title is projectName
end tell

Best wishes

John M

Ah, yes! Thank you. :smiley: