Based on a recent post, I have found easy to switch between the two front-most windows,
osascript -e ' tell application "TextMate" set index of window 2 to 1 end tell ' &>/dev/null &
(binded to numeric(0), making it really fast two use it!!, I use the little finger)
but it doesn't work as desired since, although it exchanges the windows order, it doesn't exchange the active one, leaving the window behind the new front-most one active :(
Has anyone know some solution?
Thanks.
-- Juan FC
Slightly flickery, but works:
tell application "TextMate" set w to window index 2 set visible of w to false set visible of w to true end tell
Robin
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