RunRev AppleScript Question

Thomas McGrath III 3mcgrath at comcast.net
Wed Oct 1 10:32:09 EDT 2008


Dave

Try this:

set myScript to "send \"foo Hello World\"  to card 1 of stack  
\"Untitled 1\""
tell application "Revolution" to do script myScript

it works here just fine and if you change the RR script to :

on foo theString
   beep
   return theString
end foo

then it will return the string to AS

HTHs

Tom McGrath


On Oct 1, 2008, at 8:30 AM, Dave wrote:

> Hi Mark,
>
> I just tried the following:
>
> set myStackShortName to "SATest1"
> set myScript to "send \"revSaveAsStandalone\" && quote &  
> myStackShortName & quote to stack \"revSaveAsStandalone\""
> tell application "Revolution"
> do script myScript
> end tell
>
> And it doesn't work!
>
> I've been trying loads of different syntax's but I can't find the  
> secret code!
>
> Here's an interesting one:
>
> In Stack Script of SATest1 I have the following handler:
>
> on Beeper theMessage
> beep
> answer theMessage
> end Beeper
>
> Then from the AppleScript I do:
>
> set myQuote to (ASCII character 34)
>
> set myRRScript to "send beeper" & " & quote & " & myQuote &  
> "Message" & myQuote & " & quote " & " to stack " & myQuote &  
> "SATest1" & myQuote
> 	
> Which works and displays "Message", however if I change it to:
>
> set myRRScript to "send beeper" & " & quote & " & myQuote & "Hello  
> Message" & myQuote & " & quote " & " to stack " & myQuote &  
> "SATest1" & myQuote
>
> Then Beeper gets called (it beeps!) BUT the message is empty?
>
> What gives???
>
> All the Best
> Dave
>
>
> On 1 Oct 2008, at 13:02, Mark Schonewille wrote:
>
>> Dave,
>>
>> set myScript to
>> 	"send \"revSaveAsStandalone\" && quote & myStackShortName & quote  
>> to stack \"revSaveAsStandalone\""
>> tell application "Standalone" to do script myScript
>>
>> --
>> Best regards,
>>
>> Mark Schonewille
>>
>> Economy-x-Talk Consulting and Software Engineering
>> http://economy-x-talk.com
>> http://www.salery.biz
>> Dutch forum: http://runrev.info/rrforum/
>>
>> Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
>>  for more info.
>>
>> On 1 okt 2008, at 13:41, Dave wrote:
>>
>>> Hi All,
>>>
>>> Given the Statement:
>>>
>>> send "revSaveAsStandalone" && quote & myStackShortName & quote to  
>>> stack "revSaveAsStandalone"
>>>
>>> What statement would I have to pass to the Revolution "do script"  
>>> AppleScript command to do the same thing?
>>>
>>> Thanks a lot
>>> All the Best
>>> Dave
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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