Run a handler each time a handler/function within current script is run?

Richard Gaskin ambassador at fourthworld.com
Thu Feb 12 07:32:26 CET 2015


Lyn Teyla wrote:

 > How does one automatically run a handler each time a handler/function
 > within the current script is run?

If you turn on the messageMessages global property, all handler activity 
can be monitored in a frontScript with a messageHandled handler.

This is global, however.  I don't know a way to limit such monitoring to 
a specific script.  If you know the names of the handlers in the script 
you could filter the messageHandled params - if that would work you can 
quickly obtain a list of all handlers in a script with the 
revAvailableHandlers function.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and Web
  ____________________________________________________________
  Ambassador at FourthWorld.com        http://www.FourthWorld.com



More information about the use-livecode mailing list