iTerm 2で 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