Another Knotty Question

Thomas McGrath III mcgrath3 at mac.com
Wed Jan 28 14:16:55 EST 2009


Dale,

try:

on mouseUp
send "myTestScript" to me in 2
end mouseUp

then in the card put

on myTestScript
-- beep
-- Your test script here

end myTestScript


This will exit the mouse script and have the testscript run through  
the message path and it should work.


Tom McGrath III
Lazy River Software
3mcgrath at comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html





On Jan 28, 2009, at 1:35 PM, Dale Pond wrote:

> Another one of those strange issues.
>
> I created a script in a fld that activates by typing do fld  
> "Testscript" in the message box.
> Works great! Everything works as planned.
>
> The script goes to a second stack and brings back field data to be  
> processed in the first stack.
>
> The error occurs when I copy and paste the fully functioning script  
> from the fld "Testscript" into a button script. When activating the  
> button it returns an error:
> Chunk: no such object
>
> OK. So I put do fld "Testscript" into the button... --just like in  
> the MB
> same error!!!!
>
> It seems to me this failure to execute must have something to do  
> with the message paths. The Message Box can execute the script but a  
> button cannot? must be in what information is available to the MB  
> but not the button?
> Does any of this make any sense?
> Just to catch some observations before they happen the second stack  
> was previously opened by another script that puts it into the  
> stackFiles of the first stack and the second stack stays open all  
> the while data is being fetched from it.
>
> Dale
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list