somehow added todo to readonly calendar, now how to remove?

I was messing with a script to make a Todo from an incoming mail message in Mail.app.

Somehow along the say I created a Todo in the US Holidays calendar. I cannot delete this Todo or mark it done because the calendar is read-only.

Any suggestions for removing this Todo that doesn’t want to be removed?

Hi,

Check the name of the calendar is correct and run the following:

tell application "iCal"
	try
		delete every todo of calendar "US Holidays"
	on error theErr
		activate
		display alert "Delete todos failed" message theErr
	end try
end tell

Best wishes

John Maisey
www.nhoj.co.uk

Brilliant, that did it. Thank you!