I see how one can launch Mac apps from CMD.exe (via Shared Apps), but is there any way to launch them with command-line arguments passed in from CMD.exe. I need a program in windows to be able to execute a command on mac that looks something like "foo.app -file" where there is a "foo (Mac).exe" entry in the shared app folder. However, I cannot see that there is anyway to pass the cli args. Is that correct? Matt.
I know you can pass multiple files as command line arguments to a shared Mac app in Windows. You could do what you wanted if there were a Mac app that accepted a file as a script and executed the script. 1) echo foo.app -file > thescript.sh 2) foo2 (Mac).exe thescript.sh echo creates the script as thescript.sh foo2 (Mac).exe tells Parallels to run foo2 and open thescript.sh You need a foo2 that executes thescript.sh. thescript.sh will run foo.app with the -file argument.
Eight years later, still no luck? I can plug the path to the Parallels shortcut for the Mac app into the run command and it works. Passing the file name (with the full path) as an argument to that apparently doesn't. It seems there's some formatting for this that is not the same as you would use for a native Windows program. Does anyone know how to do this? I can use "Open With" and that works, so there is clearly a way to make it happen.