以下工作在iTerm 2中打开两个选项卡。
我似乎无法弄清楚如何使用拆分窗格来代替它。
我试过应用我在几个论坛上看到的东西,但它从来没有用过。有人能指出我正确的方向吗?
osascript <<-eof
tell application "iterm"
set myterm to (make new terminal)
tell myterm
launch session "Default session"
tell the last session
set name to "Server"
write text "cd $projectsFolder"
end tell
launch session "Default session"
tell the last session
set name to "Console"
write text "cd $projectsFolder"
end tell
end tell
end tell
eof