Re: Debug AppleScript Droplet in AppleScript Studio
Re: Debug AppleScript Droplet in AppleScript Studio
- Subject: Re: Debug AppleScript Droplet in AppleScript Studio
- From: Christopher Nebel <email@hidden>
- Date: Tue, 19 May 2009 10:22:23 -0700
On May 18, 2009, at 6:47 AM, Jon Pugh wrote:
At 12:46 PM -0700 5/17/09, Paul Scott wrote:
I'm writing an AppleScript droplet in AppleScript Studio and can't
figure out how to get it running in the debugger when driven by the
"on open" handler. Is there an AppleScript Studio drop pad that I
can drop files to that will invoke the debugger? Or something more
esoteric?
Definitely something more esoteric.
Apple does not support any debugging of AppleScript. Not in Script
Editor or AppleScript Studio.
Debugging is only provided by Script Debugger, a third party product
you've already stated you do not want to know about, which makes
this whole message somewhat pointless at this point.
Okay, the AppleScript Studio debugger has had a somewhat rocky
history, functionality-wise, but "does not support any debugging"?
That's harsh to the point of being untrue.
Assuming you're actually building your droplet in Xcode, which you
said (or at least strongly implied) you were, then you can set your
application up so it stays open when run normally (i.e., without a
dropped file; I can't remember if that's the default behavior), put a
breakpoint on your "on open" handler (or wherever), launch in the
debugger, and *then* drop a file. The "on open" handler gets called
for any file-drop operation, not just ones that also cause the
application to launch.
--Chris Nebel
AppleScript Engineering
PS: Jon may have been thinking of strictly old-school non-Studio
"droplets" which you'd build in Script Editor. It's true that you'd
need to use Script Debugger for one of those; the Xcode AppleScript
debugger can only deal with scripts that were compiled in Xcode.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden