When you call Runtime.exec() you can pass just 1 string, or you can
pass an array of strings. I think the key might be to use an array of
strings... I have two working snippets that don't *quite* do what you
want (because that would be too easy)... but if you combine them it
should work:
I'm unclear whether you've tried using arrays of strings or not,
though... let me know if this helps. If it doesn't, what does your
code look like so we can test?
- Jeremy
On Aug 22, 2006, at 9:26 AM, Jha, Navin wrote:
All,
I am running into a problem launching Photoshop from my application. I
use the following String to launch Photoshop along with an image using
exec().
Open -a "Applications/Adobe Photoshop CS2/Adobe Photoshop CS2.app"
"/Users/administrator/myapp/tmp/{555}_01.jpg"
If I use the same string on command line the Photoshop does launch with
the image. Interesting part is if I create a shortcut to Photoshop
application that does work.
Regards,
Navin
The information contained in this communication is intended for the
use of the designated recipients named above. If the reader of this
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any
review, dissemination, distribution or copying of this communication
is strictly prohibited. If you have received this communication in
error, please notify The Associated Press immediately by telephone at
+1-212-621-1898 and delete this email. Thank you.
_______________________________________________
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
_______________________________________________
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