#!/bin/tcsh

set path= ($path /Library/TeX/texbin /usr/texbin /usr/local/bin)
set filename = "$1"
set htmlname = "${filename:r}.html"

htlatex  "$filename"
/Applications/Safari.app/Contents/MacOS/Safari "$htmlname"  &

