Finding the calling code/object/script?

dunbarx at dunbarx at
Thu Aug 22 22:56:46 CEST 2013

What Mark and Scott said.

Just a comment about documentation. The dictionary says clearly, though it was not findable by me until I knew what property to look for:

A common use of the executionContexts is to obtain the name of the object and handler that called the current handler, this information is available as: line -2 of the executionContexts.


-----Original Message-----
From: Scott Rossi <scott at>
To: LiveCode Mail List <use-livecode at>
Sent: Thu, Aug 22, 2013 4:38 pm
Subject: Re: Finding the calling code/object/script?

You might try the executionContexts property (may still be undocumented).

Use this after executing something: put the executionContexts

Shows the objects that handled messages


Scott Rossi
Creative Director
Tactile Media, UX/UI Design

On 8/22/13 12:44 PM, "Dr. Hawkins" <dochawk at> wrote:

>Is there a way to work back up a message to see where a command
>I am trying to trap a message that used to be valid in my code, that
>isn't.  Earlier versions allowed this message to go straight to a
>So a "send someCommand to fld abc" is no longer valid; it must now
>come in the context of "someCommand arguments" in the code.
>Is there a way inside of the handler of someCommand to find out whow
>it was invoked?
>Dr. Richard E. Hawkins, Esq.
>(702) 508-8462
>use-livecode mailing list
>use-livecode at
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the use-livecode mailing list