Skip to content

Instantly share code, notes, and snippets.

@nsbingham
Created June 12, 2012 15:50
Show Gist options
  • Save nsbingham/2918338 to your computer and use it in GitHub Desktop.
Save nsbingham/2918338 to your computer and use it in GitHub Desktop.
Bash script to capture a screenshot every 1 second on OSX
#! /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