【发布时间】:2014-03-11 23:59:12
【问题描述】:
以下工作在iTerm 2中打开两个标签。
我似乎无法弄清楚如何使用拆分 panes 来实现这一点。
我已尝试应用我在多个论坛上看到的内容,但始终没有成功。有人能指出我正确的方向吗?
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
【问题讨论】:
标签: terminal applescript iterm osascript