📌  相关文章
📜  applescript 打开新的终端选项卡 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:40.401000             🧑  作者: Mango

代码示例1
tell application "Terminal"
    activate
    do script "ping google.com" in front window
    my makeTab()
    do script "ping yahoo.com" in front window
    my makeTab()
    do script "ping msn.com" in front window
end tell

on makeTab()
    tell application "System Events" to keystroke "t" using {command down}
    delay 0.2
end makeTab