open programs with applescript

后端 未结 6 604
刺人心
刺人心 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:43

    you need to put single quotes around the tell:

    osascript -e 'tell app "iTunes" to activate'

    otherwise you're defining a variable when you run -e

提交回复
热议问题