debugging folder action scripts
debugging folder action scripts
- Subject: debugging folder action scripts
- From: "Adam K. Wuellner" <email@hidden>
- Date: Tue, 27 Apr 2004 20:20:48 -0500
I write bad ApppleScript code. I know this because I've only been
trying for about a week.
I am a little dismayed to see very little in the way of debugging
features in Script Editor. I, unluckily, picked a folder action as my
first AppleScript project, for which the code sits in an 'on adding
folder items' block. When I ran the code, it was very difficult to
tell where it was failing. No errors, despite not getting the desired
results. I wrapped most of it in an 'on run' block in a new script,
and was treated to a bunch of informative error messages when I ran it
from Script Editor (instead of having the folder action trigger the
'real' script). At one point, I used the same 'on run' code in the
Xcode editor, and was able to take advantage of some of the debugging
features there (breakpoints and stepping through the execution).
Is there a better option for debugging folder action scripts?
Forgive me if I have overlooked the obvious.
--
Adam Wuellner
email@hidden
(new to the list, new to applescript, pretty new to macs, in fact)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.