Fixed script execution to always use the frontmost window, instead of window 1.

If you had multiple terminal windows open, there was a chance that the command was sent to another window (the one with index 1). Using index 0 will execute it in the currently visible window.
pull/363/head
Nils Winkler 2014-11-05 08:17:40 +01:00
parent 43eb4950b1
commit 44e1ae0002
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function tab() {
end end
tell application "Terminal" tell application "Terminal"
activate activate
do script with command " cd \"$PWD\"; $*" in window 1 do script with command " cd \"$PWD\"; $*" in window 0
end tell end tell
EOF EOF
} }