aboutsummaryrefslogtreecommitdiffstats
path: root/bin/runInTerminal.command
blob: 372820c1b110491dff57148375d717eb99a5ba98 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
osascript >/dev/null 2>&1 <<EOF
    tell application "Terminal"
        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
    end tell
EOF