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.
_______________________________________________
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