@mk @djohngo
tell application "Terminal" tell the front window set the background color to { %s } end tell set windowID to id of the front windowend tell
@mk @djohngo Then to reset it:
tell application terminal tell window id %s set the background color to { %s } end tellend tell
The %ses are a cheesy way of passing parameters to the applescript.