Executing Shell Scripts from the OS X Dock?

前端 未结 9 1739
自闭症患者
自闭症患者 2020-12-22 17:15

How do I set up a shell script to execute from the Mac OSX dock? It seems that simply creating a shortcut will open the file in my editor. Is there a flag I need to set som

9条回答
  •  天命终不由人
    2020-12-22 17:40

    In the Script Editor:

    do shell script "/full/path/to/your/script -with 'all desired args'"

    Save as an application bundle.

    As long as all you want to do is get the effect of the script, this will work fine. You won't see STDOUT or STDERR.

提交回复
热议问题