I can open an application using open, like this:

open ./MyApp.app

But this doesn't display the application's debug printouts - which I need.

If I locate the binary inside the package manually and run that, I get the printouts fine, but I want to be able to just run the application.

link|improve this question

1  
So you don't want to just run the executable backgrounded from bash to see the output? I'm not sure that there's any other way to do this, the .app package is a proprietary Apple design that Bash wouldn't be personally aware of. – jcrawfordor Jun 3 '11 at 3:13
I want the application to run hidden but must also use cocoa. This works fine if I set "Application is agent" in the plist file and run it as an actual application. If I just run the binary directly, it doesn't run hidden and displays the dock+menu components. – Matt Jun 3 '11 at 3:48
1  
Actually if I run the binary by specifying the path rather than cd-ing to it, it works fine. Cool. – Matt Jun 3 '11 at 3:53
feedback

1 Answer

up vote 0 down vote accepted

The solution is to specify the absolute path of the application, rather than the path relative to the current directory.

For example,
open /home/matt/MyApp.app

link|improve this answer
This shouldn't make any difference. – Daniel Beck Feb 1 at 16:26
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.