Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debugging folder action scripts



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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.