I delayed replying because I have never used iCal. So I have not yet
read the script properly.
I suggest you to replace:
set theCalendar to name of (info for (path to me))
set theCalendar to findReplace(".scpt", "", theCalendar)
set theCalendar to findReplace("Create iCal To-Do in ", "",
theCalendar)
in the script with
set theCalendar to "John"
where "John" is the name of the Calendar where you want to put the entry.
This will avoid some unnecessary processing (and also scripting errors,
if any) every time the script is run.
You wrote earlier:
Somehow I have calendars named Calendar, Home and Work and all my
entries are in the first of these so I called the file "Create iCal To-
Do in Calendar.scpt", which seemed the correct thing to do. I've
still...........
so you should use:
(set theCalendar to "Calendar")
This works:
Test To-Do due: Wed 4:19 pm priority:low
which suggests me that the script is very rigid. If you want to specify
Wed, then you have to write the time as well.
If the above does not work for you, then I want to you enter random
"alphabets" like "dadsff"and nothing else and check if that works
because they work for me.
Random text like "dadsff" is accepted but "Test To-Do due:Wed" throws up
an error. I will try to amend the script when I have time.