Determine context

Peter M. Brigham pmbrig at
Sun Aug 23 16:13:35 CEST 2015

I think you could put getprop and setprop handlers into a frontscript that do this

on setprop whatever
   put line 1 of the executioncontexts into tOrigin
   if tOrigin begins with "card" then pass whatever
end whatever

...etc. This is not tested, but fooling around with the executioncontexts should get you there. You also might have to make use of "the target", which will give you the name of the object whose property is being set.

-- Peter

Peter M. Brigham
pmbrig at

On Aug 23, 2015, at 12:57 AM, Mike Bonner wrote:

> Quick question, hopefully with an easy answer..
> I have some objects with settable properties. I only want them to be
> settable from scripts in specific objects.  In this case, I want the card
> script to be able to set object properties, but don't want the scripts in
> the objects themselves to be able to do so, or for these objects to be able
> to set their siblings properties. (so basically, limited to the card script)
> Reading the property is fine, but reading sibling properties is not, so the
> card script should be able to set and see all properties.  An object should
> only be able to see itself.
> Is this possible?
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list