OSX で特定のターミナル タブを選択し、それにキーストロークを送信しようとしています。しかし、OSX 10.8.4 のターミナルは、インスペクターでカスタム タイトルを設定したとしても、タブのカスタム タイトルとして「ターミナル」以外は保存しないようです。何か案は?正しいタブを選択するために使用したいコードは次のとおりです。
tell application "Terminal"
set allWindows to number of windows
repeat with i from 1 to allWindows
set allTabs to number of tabs of window i
repeat with j from 1 to allTabs
if custom title of tab j of window i contains "blah" then
set frontmost of window i to true
set selected of tab j of window i to true
end if
end repeat
end repeat
end tell