使用 AppleScript 设置终端选项卡名称
我有以下脚本,它打开终端,连接到远程主机并在那里启动脚本:
tell application "Terminal"
activate
do script "ssh me@myserver"
delay 10
do script "sh ./startserver" in front window
end tell
如何设置此终端选项卡的名称?
I have the following script, which opens Terminal, connects to a remote host and launches a script there:
tell application "Terminal"
activate
do script "ssh me@myserver"
delay 10
do script "sh ./startserver" in front window
end tell
How can I set the name for this Terminal tab?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将
替换为您希望的标题文本。Replace
<your title here>
with whatever text you wish your title to be.