A script for using iTerm2 instead of xterm on OSX


The following seems to be working! First, make an iTerm2 profile called TagTime with the style you want. Put the following somewhere in your path, I called it iterm2-tagtime:


osascript <<EOF
tell application "iTerm2"
  set newWindow to (create window with profile "TagTime" command "$@")

  delay 1
  repeat while exists newWindow
    delay 1
  end repeat
end tell

Then in TagTime’s launch.pl, replace $XT ... ${path}ping.pl $t with iterm2-tagtime ${path}ping.pl $t, and similarly for the other use of $XT a few lines later.