本番環境に繋いだ時に色を変えるのに参考にさせてました
http://qiita.com/k_kinukawa/items/3e5665325a4954e33019
ですがver3にあげたらエラーを出力して動作しなくなってしまいました
44:52: syntax error: end of line があるべきところですが identifier が見つかりました。 (-2741)
ver3のドキュメントを参考にするとterminal
じゃなくてwindow
になっていたので
こんな感じに修正した
tell application "iTerm2"
tell the current window
tell the current session
set background color to {$(($R*65535/255)), $(($G*65535/255)), $(($B*65535/255))}
end tell
end tell
end tell
これで本番に繋ぐのも怖くない