Re: Starting an mac application



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


.



Relevant Pages

  • Re: Linked packages in advertisement?
    ... To set a dependency chain: Create two programs program a and program b. ... You don't have to update the package to change program dependency. ... > If I later have to distribute a third App wich also depends on Oracle, ... You don't have to re-package Oracle client. ...
    (microsoft.public.sms.swdist)
  • Re: Distributed Access references
    ... understand from trying to package an app and working w/ ... Although it appears that the excel does get packaged by ... So my app relies on the user having their own ... As for the other references I am not sure what to do? ...
    (microsoft.public.access.devtoolkits)
  • Re: Starting an mac application
    ... 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. ... Let's say you have an app called Foo.app, ... the code above seems to work on windows with some .exe file but not on ...
    (comp.lang.java.programmer)
  • Re: Visual Basic executable file
    ... simply use the the Package & Deployment wizard to create a setup ... Have the user run the install package that is on the CD. ... properly install your app on their PC. ... Create an INI file with the database path and have your app ...
    (microsoft.public.vb.general.discussion)
  • Re: PDW Fun
    ... So now I am trying to package my app. ... Remove any reference you're not actually using. ... This is one app so why would I add a group or new item? ... PDW's default is most likely to install them in either the application folder or in the System32 folder. ...
    (microsoft.public.vb.general.discussion)