I’m able to launch the Terminal, but I can’t figure out how to pass commands to it. The code below will open the Terminal, but any suggestions has to how I pass a command to the terminal?
ProcessStartInfo proc = new ProcessStartInfo();
proc.FileName = “/Applications/Utilities/Terminal.app”;
Process.Start(proc);
Yes I tried the argument property but then it tries to open an app directly and not via a command line. And this gives a warning from Mac OS. The binary must be opened via a command line in the terminal.
Ah, gotcha. Look inside Terminal.app (right click to Show Package Contents) and then dig into Contents/MacOS and there should be an actual executable binary. Pass that as your executable filename, then I think the args will work.
BTW, terminal is contained in under /Applications/Utilities
That’s actually a handy way to get two instances of an app running on MacOSX. I have a bash alias (simply ‘u’) that links to Unity’s equivalent binary and I can launch as many instances of Unity as I want, as long as each points to a different project. Handy when you just want to fire up another project to see how you did something, without leaving your current project.