in reply to Mac OSX Opening .app & UNIX EXEC

I'm not sure I understand what you are trying to do. Are you not using Terminal.app (or X-Windows/xterm) to run a command-line shell? If not, why not? This is the normal unix way of running scripts or compiled programs and since macosx is just bsd unix with extra bells and whistles, it's the normal way I do stuff on the mac. I've never had a problem using perl from the shell.

Replies are listed 'Best First'.
Re^2: Mac OSX Opening .app & UNIX EXEC
by nevafuse (Novice) on May 19, 2009 at 18:17 UTC
    I'm running a shell command in my 2 perl script. Like I said in the post, the script works fine when I run `/Applications/myapp.app/contents/macos/myapp`. But when I run `open myapp.app` (mimicking someone double-clicking the .app folder) it doesn't work correctly. It loads the first application, and then loads the second app and closes the first app, but it won't re-load the first app (with an error if i run `/Applications/myapp.app/contents/macos/myapp` and no error just wont open if i run `open myapp.app` inside the second perl script). Hope this clears up the confusion.