Writing Extensions

Mark Wieder ahsoftware at sonic.net
Thu May 25 22:45:06 EDT 2017


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
  ahsoftware at gmail.com





More information about the use-livecode mailing list