Re: Tool for debugging droplets
Re: Tool for debugging droplets
- Subject: Re: Tool for debugging droplets
- From: Luther Fuller <email@hidden>
- Date: Sun, 26 Feb 2006 15:53:38 -0600
Walter Bushell said ...
developing droplets in script editor is a pain because if you operate
as a droplet the normal debugging methods are closed.
However ,it is possible to supply a run handler that calls the open
handler. However, manually entering file aliasen is also a pain
To which kai replied ...
The following variation uses the current Finder selection to create a
run handler/alias list, which is copied as text to the clipboard. The
script can be run from the Script Menu or as an application (applet/
droplet). The applet would need to be launched in a way that avoids
selecting it in Finder, such as from the Dock (otherwise the action
will obviously change the selection).
Recently, I've been working on getting Select & Launch to work more
or less just like Drag & Drop. There is one difference that is
important to understand.
When you Select & Launch, the handler that gets the Finder selection
can make all sorts of intelligent decisions about what to pass to the
open handler, including whether to include alias files or not.
Sometimes including an alias file can be illogical or even dangerous.
The open handler always resolves alias files, even if it has
illogical or dangerous results. In a recent project, I omitted Drag &
Drop because a misplaced alias could lead to a file which contains a
copy of itself, which in turn contains a copy of itself, which ...
This is the way the open handler has worked since AppleScript was
invented. I recall a discussion about 10 years ago about
work-arounds, but there are none.
In my opinion, this was and still is a serious bug. Does anyone know
if a report has ever been filed?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden