Marc Epard <email@hidden> wrote:
>Could it be reading from stdin, which is where it gets the script if it
>doesn't have a -e or a file? You might try using Activity Monitor to Sample
>osascript to see what it is doing.
It could also be deadlocking if your process isn't reading the stdout and
stderr streams from the 'osascript' Process. There is only a small
inter-process pipe buffer, and when it fills up, deadlock ensues.
See 'man osascript' for options that control where it returns error and
output results.
Read the Process streams with a separate Thread, collecting in a
ByteArrayOutputStream if you want to keep the output, or just discarding
the bytes read if you don't.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden