Re: get handler name
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