I'd like to try debugging AppleScripts by stepping through the code. I
write quite a bit of Perl code for CGI scripts and use ActivePerl's
Komodo IDE. It will allow the debugging of a number of different
languages but not AppleScript. Do you use a debugger and if so is it
an inexpensive one
No, i don't use a debugger. I simply use the "say" (e.g. say 1, say 2)command to see where the scripts stops processing. Try this script: http://dl.getdropbox.com/u/872430/ical%20trying.scpt
Open the script in Script Editor.
I have set theCalendar to the "Calendar"
The text that you need to enter should be the first line which currently is


set inputText to "35334211Test ToDo d[ Wed  p[ h"


As you can see, I have simplified the entreing of text by replacing "due:" with "d[" and "priority:" with "p[". And instead of low, medium, high (for priority) you can simply enter l, m or h. I have also written comments (lines which begin with -- for e.g.--{"Test ToDo", "due|Wed 4:19 pm", "priority|:low"}) to explain you the output at each stage.
All you have to do is keep playing with the text to see the results.


set inputText to "35334211Test ToDo d[ Wed  p[ h"

The above script does not use Quicksilver.
After you are done playing, let me know, I will show you how to use it with or without Quicksilver.

Reply via email to