• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
debugging folder action scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: debugging folder action scripts
      • From: Sander Tekelenburg <email@hidden>
    • Re: debugging folder action scripts
      • From: "John C. Welch" <email@hidden>
  • Prev by Date: Re: Posting to a USENET Newsgroup in an Applescript?
  • Next by Date: Re: debugging folder action scripts
  • Previous by thread: Re: Using Applescript to save a text file?
  • Next by thread: Re: debugging folder action scripts
  • Index(es):
    • Date
    • Thread