I've written the following script to help me get successive screencaptures. I'm able to get the screencaptures to happen in successive files, but not as fast as I'd like them. The sleep rate isn't recognized after a certain point.
What are the decimal limits for 'sleep'? If it can in fact go lower, is there something wrong with my script that is preventing the captures from happening at faster rate?
#!/bin/bash
while true; do
CAPTURE_FILE_NAME=`date "+%Y_%m_%d_%H%M%S.jpg"`
screencapture $CAPTURE_FILE_NAME
sleep .001
done
exit 0