Launch an app on OS X with command line

前端 未结 12 1036
北恋
北恋 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条回答
  •  Happy的楠姐
    2020-12-04 06:40

    You can launch apps using open:

    open -a APP_YOU_WANT
    

    This should open the application that you want.

提交回复
热议问题