do script from applescript

Thomas McGrath III 3mcgrath at comcast.net
Tue Sep 23 14:41:06 EDT 2008


Bernd or BNig,  smile

That worked. I am not sure why a simpler version worked for others????

Since that worked I am going to adapt it to my project and see how it  
goes.

Thanks again,

Tom


On Sep 23, 2008, at 2:15 PM, BNig wrote:

>
> Hi Tom,
>
> I only get it to work if I set the calling applescript to
>
> tell application "Revolution"
> 	activate
> 	do script "send \"testIt \" to stack \"NameOfYourStack\""
> 	set x to the result
> end tell
> x
>
> the last x optional to see the result
>
> in the stackscript of my stack "NameOfYourStack"
>
> ----
> on testIt
>   answer "got it"
>   beep 2
>   return "OK"
> end testIt
> ----
>
> I saw others had success with your version, I never got it to work
>
> hth
>
> Bernd
>
>




More information about the use-livecode mailing list