Dual Purpose Applet Question
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