Settings Scripts from a Script in a Standalone

J. Landman Gay jacque at hyperactivesw.com
Fri Feb 3 17:45:10 EST 2012


On 2/3/12 5:32 PM, Ray Horsley wrote:
>
> I've just noticed that in 5.0.2 a line in an idle handler script which sets the script of another stack is now failing.  There's nothing in the result when it fails, although I do get a rather cryptic return if I put it in a try-catch (below).  The rest of the idle handler simply stops running.  The content of the script being set is only three lines long so I'm sure it doesn't exceed Livecode's limit (which I believe is 10 lines).  As a matter of fact, if I run the same handle from a button in the standalone it works fine.
>
> Here's the try-catch error:
> 360,0,0
> 90,96,22
> 449,96,7,on idle
> 535,96,1,on idle
>
> Here's the script:
>     put "on myHandler" into tmpScript
>     put "send "&numToChar(34)&"doIdle"&numToChar(34)&" to stack"&numToChar(34)&"•Panels Shell•"&numToChar(34)&"" into line 2 of tmpScript
>     put "end myHandler  into line 3 of tmpScript
>     set the script of stack "Panels" to tmpScript
>
> Any ideas?


360	Object: can't set script while it is executing
90	Chunk: can't set property
449	Object: can't set object property
535	set: can't set property


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





More information about the use-livecode mailing list