Re: Starting an mac application
- From: vladimir.olexa@xxxxxxxxx
- Date: 14 Mar 2007 15:04:27 -0700
Well, .exe is an entirely different concept than .app. .app is nothing
but a package, a directory if you will, so passing parameters to it
isn't actually passing it to the executable but to the whole package.
So the actual UNIX executable is really located inside that package.
Let's say you have an app called Foo.app, then your executable would
be in Foo.app/Contents/MacOS/Foo. So you may wanna try to pass your
parameters directly to that and see if that works.
Hope this helps.
On Mar 14, 12:49 pm, Christian <fakem...@xxxxxx> wrote:
Hello
I have got some Mac Application that I want to start with some parameters
...
ProcessBuilder pb = new
ProcessBuilder(tooFreeApp.getPath(),"-data",myRootPath.getPath(),appargumen ts);
pb.redirectErrorStream(true);
process = pb.start();
BufferedReader i = new BufferedReader(new InputStreamReader(
process.getInputStream() ) );
String read;
while (null != (read =i.readLine())) {System.out.println(read);}
...
the code above seems to work on windows with some .exe file but not on
mac with the corresponding .app file.
Someone got an idea what I could do?
Christian
.
- Follow-Ups:
- Re: Starting an mac application
- From: Christian
- Re: Starting an mac application
- References:
- Starting an mac application
- From: Christian
- Starting an mac application
- Prev by Date: Re: DatagramSocket receive performance
- Next by Date: Re: Way to get session variables into a non-servlet?
- Previous by thread: Starting an mac application
- Next by thread: Re: Starting an mac application
- Index(es):
Relevant Pages
|