Settings Scripts from a Script in a Standalone

J. Landman Gay jacque at hyperactivesw.com
Fri Feb 3 22:42:25 EST 2012


On 2/3/12 9:23 PM, Ray Horsley wrote:
> Jackie,
>
> Thanks for this insight!  Two quickies if I may; where can I get a
> list of the code definitions returned by a try-catch and is there any
> way for me to get a list of handlers which are currently executing so
> I know not to try to update them while they're still running?

The location of the error codes is listed in the dictionary under the 
errorDialog entry, along with instructions on how to get them. You can 
grab them and stick them in a reference somewhere if you want:

  get the cErrorsList of card 1 of stack "revErrorDisplay"

The same dictionary entry also explains what all the numbers mean.

I have a lookup stack I made that I use as a plugin for this, which is 
how I looked up your error codes. I was meaning to upload it to 
RevOnline until I got locked out. I seem to be able to get back in there 
now so I'll upload it one of these days.

In the mean time you can just grab that list and put it into a text file 
or a stack field.

I'm not sure how you get a list of running handlers. Generally it isn't 
an issue because they run sequentially and don't usually overlap. One 
exception is when one handler calls another, which calls the original 
again. That may be what you're seeing. If you do that too much you get a 
recursion error.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list