open programs with applescript

后端 未结 6 606
刺人心
刺人心 2021-02-02 10:39

2 part question:

I\'m simply trying to run programs using applescript from the terminal, so I tried:

$ osascript tell application \"iTunes\" to activate
         


        
6条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 11:36

    an alternative to osascript:

    open -a Calendar
    

    close by:

    pkill Calendar
    

提交回复
热议问题