• 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: get handler name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get handler name


  • Subject: Re: get handler name
  • From: Jason Bourque <email@hidden>
  • Date: Thu, 22 Mar 2001 20:11:08 -0500

> Is there a way to get a handler's name?
>
> <snip>
> on handlerName()
> try
> on error
> set h to -- code that will return "on handlerName()"
> end try
> end handlerName
>
>
> Thanks,
> BG

On that last note you could install the below code into the top of every
handler and just keep it off by using false and when you need it set it to
true and all you will get back from the handler is its name.

on handleName(myName)
if myName then
return text 4 thru ((offset of "(" in (me as text)) - 1) of (me as
text)
end if
end handleName


handleName(true)


Jason Bourque


References: 
 >get handler name (From: Brad Giesbrecht <email@hidden>)

  • Prev by Date: Re: get handler name
  • Next by Date: (no subject)
  • Previous by thread: Re: get handler name
  • Next by thread: Re: get handler name
  • Index(es):
    • Date
    • Thread