Hi Tim,

On a side note, I don't think that you need to put "AppleScript" between quotes.

To return a value back to Revolution, use the return command :-)

put "set x to 12" & cr & "return x" into myScript
do myScript as AppleScript
put the result into rslt

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

We are always looking for new projects! Feel free to contact us to discuss your custom software project!

On 13 jan 2009, at 19:29, Timothy Miller wrote:

When I

do <container> as "applescript"

is it possible for applescript to pass a variable or function or something back to rev?

For instance, just to keep it simple, could I somehow use "the result" from appleScript in a Rev script?

If someone can applescript off the cuff and is feeling generous, I want to use Rev to check if "/applications/firefox.app" is running. Suggestions received gratefully.

I tried checking the openProcesses, but it doesn't seem to work reliably, and it doesn't work if I launch the application outside of Rev.

Thanks in advance,

Tim


_______________________________________________
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

Reply via email to