On 05/25/2017 06:58 PM, JB via use-livecode wrote:
After it has been compiled as Arguments.class you
can call it in liveCode like this:
on mouseUp
put "Drink" into arg1
put "Hot" into arg2
put "Java" into arg3
put "/Users/THEUSER/Desktop/" & return & "java Arguments"into pFilePath
put "java Arguments" into pFileName
put shell( "cd" && pFilePath & return & pFileName) && arg1 && arg2 && arg3
into fld id YOURFIELD
beep 2
end mouseUp
Interesting. Why do you call it twice?
And shouldn't you be passing the arguments to the java program?
put "~/Desktop" into pFilePath
put "java Arguments" into pFileName
put shell( "cd" && pFilePath & return & pFileName && arg1 && arg2 &&
arg3) into fld id YOURFIELD
--
Mark Wieder
ahsoftw...@gmail.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode