• 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: Regarding Handlers...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Regarding Handlers...


  • Subject: RE: Regarding Handlers...
  • From: "Robert Seckendorf" <email@hidden>
  • Date: Mon, 18 Dec 2000 16:35:44 -0800

I have two questions regarding handlers in general... Here goes.

Question #1

Can a handler call another handler during it's execution before returning
to the script that called it? like in the following:

script commands...
handler_a()
more script commands...
end script

on handler_a()
commands
handler_a1()
return()
end handler_a

on handler_a1()
commands
return()
end handler_a1

Question #2

Is it not possible to call a handler from within an if statement...
I have tried the following but keep getting errors from the compiler.

display dialog "What is your favorite color?" button {"Red", "Blue",
"Neither"}
default = 1
set someValue to text returned from result
if someValue = "Red" then
goToRedHandler()
else if someValue = "Blue" then
goToBlueHandler()
end if

Any comments?

Thanks in advance.


  • Follow-Ups:
    • Re: Regarding Handlers...
      • From: Paul Berkowitz <email@hidden>
    • Re: Regarding Handlers...
      • From: Jason Bourque <email@hidden>
  • Prev by Date: Syntax to create new Eudora mailbox
  • Next by Date: Re: Regarding Handlers...
  • Previous by thread: Syntax to create new Eudora mailbox
  • Next by thread: Re: Regarding Handlers...
  • Index(es):
    • Date
    • Thread