我想重命名在OSX中打开的终端标签,但我只能用下面的代码更改终端标题。有没有办法使用命令更改Tab标题?我正在使用Python 2.7的osascript。使用命令自动重命名终端标签
name = """osascript -e 'tell application "Terminal" to set custom title in selected tab of the front window to "script_1"'"""
os.system(name)
手动:壳牌>编辑标题(SHIFT + COMMAND + I)>标签标题
没有** joel goldstick **的代码,它不起作用。 – hzleonardo