So if summer.scpt is in /tmp ...
String exec = "osascript -e 'run script posix file \"/tmp/summer.scpt\"
with parameters {4,5,6}'";
That string will work as a shell command-line, but it won't work as an arg
to Runtime.exec(). Runtime.exec() is not a shell; it does not understand
quoting. It always breaks a String into cmd-line args at whitespace.
Instead, use the String[] form of exec(), with each param in its own String:
String[] cmdArgs ={ "osascript", "-e",
"run script posix file \"/tmp/summer.scpt\" with parameters {4,5,6}" };
Process process = Runtime.getRuntime().exec( cmdArgs );
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription: