[Feature request] Applescript to set session title
From the mailing list:
Applescript ability to set window and tab titles, independent of shell activity would save noobs like me a lot of aggravation.
The existing mechanism to do this through escape codes seems fragile. Things that work fine for a shell in OS X don't work (in the same tab) once I "vagrant ssh". Also there are sometimes side effects (like the prompt disappearing). Lastly, Applescript seems to choke on command codes.
This is NOT a request to remove or change of the existing functionality, which no doubt many people are happy with.
This is instead a request for a way for Applescript to optionally, easily override tab and window titles that come from the shell. An example might be tab_name and window_name variables that, if unset, would reflect the existing behavior.
Setting titles through escape codes seems roundabout compared to just directly setting it in Applescript.
My use case: I want to open several windows. Each window has an assigned title that doesn't change. The window title denotes a project (for example, "Manhattan", "Runway", "Forbin"). Each window has three tabs, with unchanging titles that reflect the work I do in those tabs (for example, "Edit", "Compile", "Deploy"). Each tab runs "vagrant ssh", and then cds into a specific directory and activates a specific gemset. I don't care much about the prompt, so long as it's present. I already have this working, except for the window title and tab title setting.