我想重命名在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