Created
June 12, 2012 15:50
-
-
Save nsbingham/2918338 to your computer and use it in GitHub Desktop.
Bash script to capture a screenshot every 1 second on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
i=0 | |
if [ ! -d "./images" ]; then | |
mkdir ./images | |
fi | |
while true; do | |
screencapture -x -t png -T 1 "images/capture$i.png" | |
((i++)) | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment