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

Richard Gaskin ambassador at
Thu Feb 12 01:32:26 EST 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

More information about the use-livecode mailing list