Applescript (osascript): opening split panes in iTerm 2 and performing commands

前端 未结 6 1245
生来不讨喜
生来不讨喜 2021-01-05 01:14

The following works to open two tabs in iTerm 2.

I can\'t seem to figure out how to get this to using split panes instead.

I\'ve tried appl

6条回答
  •  离开以前
    2021-01-05 02:18

    As Dom pointed out, in the new 2.9 beta builds, the other answers won't work anymore. I was frustrated by not being able to automated this so I wrote a teamocil compatible command line tool that does exactly this:

    https://github.com/TomAnthony/itermocil

    It allows you to write YAML files for pre-configured sets of windows and panes, which can run pre-defined sets of commands for the given project.

提交回复
热议问题