• 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
Re: bug or feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >bug or feature? (From: "Donald S. Hall" <email@hidden>)
 >Re: bug or feature? (From: Jon Pugh <email@hidden>)

  • Prev by Date: Send email with attachments ??
  • Next by Date: Re: Send email with attachments ??
  • Previous by thread: Re: bug or feature?
  • Next by thread: Re: bug or feature?
  • Index(es):
    • Date
    • Thread