runInTerminal.command 371 Bytes
Newer Older
con's avatar
con committed
1
2
3
#!/bin/bash
osascript >/dev/null 2>&1 <<EOF
    tell application "Terminal"
4
5
6
7
8
9
        do script "$1 $2 +$3 +\"normal $4|\"; exit"
        set currentTab to the result
        set number of columns of currentTab to $5
        set number of rows of currentTab to $6
        set position of windows whose tabs contains currentTab to {$7, $8}
        activate
con's avatar
con committed
10
11
    end tell
EOF