Terminal Command:

i=1;while [ 1 ];do screencapture -t jpg -x ~/Desktop/ADSB/$i.jpg; let i++;sleep 20; done