Page 1 of 1

How do I get additional alternate languages?

Posted: Thu Aug 20, 2009 12:19 pm
by planix
Hi,

I want to experiment with python as an external/alternate language with Rev as the GUI front end. But, when I check my alternatelanguages I get

Code: Select all

XML
VBScript
VBScript.Encode
JScript.Compact
JScript
JScript.Encode
"SignedJavaScript"
"SignedVBScript"
I then installed python. But, checking alternate languages has the same result.

So, the question is can I install/access additional alternate scripting languages? If so, how?

I am using runrev 3.0 enterprise.

Posted: Thu Aug 20, 2009 1:25 pm
by Mark
Hi planix,

If a language is able to hook into the scripting APIs of the operating system, it will be available as an alternateLanguage, such as Latenight Software's JavaScript OSA extension for Mac OS X. You don't need to do anything special for that. Since Python can't do that, it isn't available, but fortunately it is very easy to run Python from the shell.

Best,

Mark

Posted: Thu Aug 20, 2009 1:37 pm
by planix
Thanks Mark.

Bryan McCormick revUp 50 http://www.runrev.com/newsletter/june/i ... etter1.php describes using python as an alternate language.
This puts the return delimited list of languages into the message box. Of course you can roll this into a function for later testing to make sure the target language is available before you go off into the weeds. Something like...

function isLangInstalled pLang
put the alternatelanguages into temp
if pLang is not in temp then
return "ERROR:"&& pLang &&"is not installed."
else
return empty
end if
end isLangInstalled

You would call this in your mouseUp or other script passing "Python" as the pLang parameter to the function, or whatever your target language may be.
Is he just referring to the Mac environment?

Can you point me to some additional docs or tutorials on using the shell command? A quick browse suggests I could use pretty much any program that can be accessed via the command line. Is that right? If so, I really would like to get up to speed with that for the project I am thinking about.

cheers