• 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
Dual Purpose Applet Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dual Purpose Applet Question


  • Subject: Dual Purpose Applet Question
  • From: Mr Tea <email@hidden>
  • Date: Tue, 05 Dec 2000 16:40:14 +0000

Hello folks.

Is there any way to make an applet that behaves differently depending on
whether it is double-clicked or has something dragged onto it?

Put simply, I would like to have a script on my desktop that tidies away any
files dropped onto it, but opens a folder when double clicked.

At the risk of revealing my ignorance (generally a good idea when one wishes
to learn something), I started out with the following test script:

on open
beep 1
end open
on run
beep 2
end run

Sure enough, it beeps when I drag something onto it, but does nothing when I
double-click. Clearly the latter is different to running the script, as it
obediently beeps twice when run from the script editor. Where do I go from
here?

Mr Tea
--
Brew of the day: Lapsang Souchong


  • Prev by Date: Re: Sending a message via Program Linking
  • Next by Date: Re: Name of Finder
  • Previous by thread: Re: AppleScriptable Digital Camera?
  • Next by thread: Re: Dual Purpose Applet Question
  • Index(es):
    • Date
    • Thread