HiroshiFuu
HiroshiFuu

Reputation: 311

How to run external program in Mac OS via C++?

I need to build a cross platform that need to call an external .jar application. I could do it in Windows, but I have no idea how to do it in Mac OS.

Upvotes: 0

Views: 1016

Answers (2)

lonely
lonely

Reputation: 57

If you were to use this instead:

system("/Applications/Safari.app/Contents/MacOS/Safari");

You would get a new instance of Safari. Much like opening multiple instances of IE in Windows. But this isn't Mac behavior so use "open" instead.

Upvotes: 1

lonely
lonely

Reputation: 57

If you want to open Safari, use this:

system("open /Applications/Safari.app");

Upvotes: 0

Related Questions