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
:
#!/bin/bash
osascript <<EOF
tell application "iTerm2"
activate
set newWindow to (create window with profile "TagTime" command "$@")
delay 1
repeat while exists newWindow
delay 1
end repeat
end tell
EOF
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.