Less flickery, but probably less portable: tell application "TextMate" to set index of window index 2 to 1 tell application "System Events" to keystroke "~" using command down Anyone have a better solution? Robin