RunRev AppleScript Question

BNig niggemann at uni-wh.de
Wed Oct 1 10:49:14 EDT 2008


Hi Dave,

building on Marks script a version that is not hard coded and with return as
suggested by Tom in applescript:
I send it to the current card since it seems that when you just send it to
the stack it doesnt go further down the message path whereas if you send it
to a card it goes up the message path, although the documentation says an
apple event is sent to the current card.


----------------
set tHello to "Hello World"
set tStackName to "Untitled 1"
set myScript to "send \"foo\" && quote & \"" & tHello & "\" & quote to
current card of stack \"" & tStackName & "\""
tell application "Revolution" to do script myScript
set x to the result

---- 

on the Revolution side:

----------
on foo theString
    beep
    put theString
    return "OK"
end foo
---------

still dizzy form all the quotes and "" and \"  :-)

regards

Bernd
-- 
View this message in context: http://www.nabble.com/RunRev-AppleScript-Question-tp19758704p19762162.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list