Launch Mac Apps from Windows CMD w/ CL arguments?

Discussion in 'Windows Virtual Machine' started by Matthew C Roberts, Sep 16, 2010.

  1. Matthew C Roberts

    Matthew C Roberts Bit poster

    Messages:
    2
    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.
     
    pixbroker likes this.
  2. joevt

    joevt Forum Maven

    Messages:
    1,229
    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.
     
  3. pixbroker

    pixbroker Junior Member

    Messages:
    13
    Did you ever find a solution for this?
     

Share This Page