RunRev AppleScript Question

BNig niggemann at
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
    put theString
    return "OK"
end foo

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


View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the Use-livecode mailing list