【发布时间】:2018-01-25 04:59:46
【问题描述】:
我正在尝试为 iTerm2 创建一个脚本,该脚本将创建一个会话(通过拆分),然后将文本输入到新创建的会话中。如何激活新创建的会话?
tell application "iTerm"
tell current session of current window
split horizontally with default profile
end tell
-- Here is what I need help with?
set _new_session to <what goes here> of current window
tell _new_session
write text "ls"
end tell
end tell
【问题讨论】:
标签: applescript iterm2