Running script from BBEdit/TextWrangler gives "tput: No value for $TERM and no -T specified"
The solution is to enclose any use of tput in .bash_profile within a test for interactive shell, i.e.:

if [[ $- == *i* ]]; then
  #tput command
  #tput command
  #tput command
  #etc
fi