Re: bug or feature?
Re: bug or feature?
- Subject: Re: bug or feature?
- From: garbanzito <email@hidden>
- Date: Thu, 18 Oct 2001 15:07:26 -0600
at 2001 10 17, 20:47 -0700, they whom i call Jon Pugh wrote:
You can detect if you were launched without a d&d in the run
handler. The open handler will be called directly if you are
launched with a d&d. You can uninitialize your variable in the quit
handler for the next launch. You can tell when you are double
clicked while running with the reopen handler.
I don't know why you would care, so I can't be more precise about a
technique to use.
here's a reason to care (not that persistent globals are
any impediment):
i have used double-click as a way to set "preferences" for
a script that ordinarily operates on files. for example, i
have a script that uses regular expressions to modify file
names. i double-click to set the search and replacement
expressions (stored as properties). then i can repetitively
drag files onto the droplet (whether it's already open or
not) to do the name changing, without having to go through
the setup again.
this isn't a really fine UI, but it's somewhat similar to how
some apps like Stuffit Expander work.
--
steve harley email@hidden