title: How to startup a Mac OS X application from command line?
body: <p>"open -a" is not the answer wanted, because I want to debug the Mac OS X application automatically. This means it's better if someone can give the command line like <strong>[program] [args]</strong> format. So ltrace mechanism can make <strong>[program]</strong> as target for debugging and take <strong>[args]</strong> as input. </p>
  
  <p>I have tried command line like "/Applications/Microsoft Office 2011/Microsoft PowerPoint.app/Contents/MacOS/Microsoft PowerPoint" /Users/poc.pptx, only Microsoft Point process started but the poc.pptx not opened.</p>
  
  <p>After grepping the Microsoft Point with pptx file opened, it's something like: /Applications/Microsoft Office 2011/Microsoft PowerPoint.app/Contents/MacOS/Microsoft PowerPoint -psn_0_307275, there is no argument "poc.pptx".</p>
  
  <p>I even manually use "gdb /Applications/Microsoft Office 2011/Microsoft PowerPoint.app/Contents/MacOS/Microsoft PowerPoint" and "set args /Users/poc.pptx", and then "r", the target application can not run with the certain file opened.</p>
  
  <p>I am confused about this, so, is there someone can help me to solve this problem?</p>
  
  <p>Thank you!</p>