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

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 ..."
}


  • Follow-Ups:
    • Re: Dual Purpose Applet Question
      • From: Mr Tea <email@hidden>
  • Prev by Date: Re: Sending a message via Program Linking
  • Next by Date: Re: Name of Finder
  • Previous by thread: Re: Dual Purpose Applet Question
  • Next by thread: Re: Dual Purpose Applet Question
  • Index(es):
    • Date
    • Thread