I have found that if the code is at the card level then I have to
include the card in AS.
Also, the variable myStackShortName variable is actually being sent as
the text myStackShortName and not the name that variable holds.
If SATest1 is declared in RR then this will work:
set myScript to "send \"revSaveAsStandalone myStackShortName\" to
stack \"revSaveAsStandalone\""
BUT if it needs to be declared in AS then you should build the script
in AS:
set myScript to "send \"revSaveAsStandalone SATest1\" to stack
\"revSaveAsStandalone\""
HTHs
Tom McGrath
On Oct 1, 2008, at 10:32 AM, Thomas McGrath III wrote:
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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution