Launch an app on OS X with command line

前端 未结 12 1030
北恋
北恋 2020-12-04 06:03

I want to launch an app on OSX from a script. I need pass it command line arguments. Unfortunately, open doesn\'t accept command line args.

The only opt

12条回答
  •  渐次进展
    2020-12-04 06:42

    As was mentioned in the question here, the open command in 10.6 now has an args flag, so you can call:

    open -n ./AppName.app --args -AppCommandLineArg

提交回复
热议问题