This property does not do what you think. Setting a custom title for one tab applies to all tabs in all windows for this code:
tell application "Terminal" tell window 1 set title displays custom title of tab 1 to true set custom title of selected tab to "foo" end tell tell window 2 set title displays custom title of tab 2 to true set custom title of selected tab to "bar" end tell end tell
I wonder if this is due to a header related to the environment - that is, bash , csh , zsh , ksh , and not to individual tabs. Even if I leave the Terminal and return, the βbarβ is still displayed everywhere. I freely admit that I do not know enough about how the CL interface works to know for sure.
At the same time, if you are studying Applescript, I would advise you to learn it with something less fun, like Finder or something like that. There are tons of more useful things you can do there than in the terminal with Applescript.
source share