I'm sorry if this is a straightforward question but I have looked all over for an answer and can't find one.
How do you call a Java method from AppleScript Studio when the method takes parameters?
I have read that methods need to be static and can get:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
public static getInfo() {
<font color = brown>// code here</font>
}
</font>[/code]
to work with:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>set variable to call method <font color = red>"getInfo"</font> of class <className></font>[/code]
but if I add a parameter as so:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>public static getInfo(String input) {</font>[/code]
and call:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>set variable to call method <font color = red>"getInfo"</font> of class <className> with parameter <font color = red>"some information"</font></font>[/code]
then nothing happens. I am assuming it is something to do with the format of the parameter but I am not sure. I don't know how to wrap everything in Objective-C so unless the code is VERY easy to copy that is not an option.
Thanks for your help, James