script to run spanread and grabframe