我们常有这样的需求,我们需要直接打开项目的根目录,执行一些命令操作,那么有没有一个方便的形式呢?有的,就是把打开终端窗口和定位的操作,存储下来,如下
osascript -e 'tell application "Terminal" to do script " sh ~/Desktop/shellTest/open.sh" '
osascript -e 'tell application "Terminal" to do script " sh ~/Desktop/shellTest/open.sh" '
本文标题:Mac打开一个Terminal窗口
本文链接:https://www.haomeiwen.com/subject/boxmlhtx.html
网友评论