Re: Dual Purpose Applet Question
Re: Dual Purpose Applet Question
- Subject: Re: Dual Purpose Applet Question
- From: "Arthur J Knapp" <email@hidden>
- Date: Tue, 05 Dec 2000 13:11:52 -0500
>
Date: Tue, 05 Dec 2000 16:40:14 +0000
>
Subject: Dual Purpose Applet Question
>
From: Mr Tea <email@hidden>
>
Is there any way to make an applet that behaves differently depending on
>
whether it is double-clicked or has something dragged onto it?
>
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?
Your script works fine "as is" for me. Perhaps your beeps are getting
eaten up by the launching process, try:
on open
display dialog "open()"
end open
on run
display dialog "run()"
end run
>
Mr Tea
>
--
>
Brew of the day: Lapsang Souchong
Remember, Lapsang Souchong is Gnohcuos Gnaspal spelled backwards.
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
"... but I could be anyone"
"No you couldn't, sir ..."
}