Re: debugging folder action scripts
Re: debugging folder action scripts
- Subject: Re: debugging folder action scripts
- From: "John C. Welch" <email@hidden>
- Date: Tue, 27 Apr 2004 21:10:55 -0500
On 4/27/04 8:20 PM, "Adam K. Wuellner" <email@hidden> wrote:
>
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.
Well, if you want complex debugging, Script Editor isn't going to do it for
you. You have to use the right tool for the job. You can get some basic
debugging done with SE, but it's a very basic tool, and that's what it's
designed for. Studio is okay for debugging, but absolutely awful for writing
scripts with no UI involved.
What exactly are you trying to do?
john
--
"She was not, herself, hugely in favor of motherhood in general.
Obviously it was necessary, but it wasn't exactly difficult.
Even cats managed it. But women acted as if they'd been given
a medal that entitled them to boss people around. It was as if, just
because they'd got the label that said 'mother', everyone else got
a tiny part of the label that said 'child'..."
Agnes Nitt's thought process in Terry Pratchett's Carpe Jugulum
_______________________________________________
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.