Skip to content

Instantly share code, notes, and snippets.

@soundkitchen
Created December 2, 2014 17:41
Show Gist options
  • Save soundkitchen/ad30e27afa738c7c184b to your computer and use it in GitHub Desktop.
Save soundkitchen/ad30e27afa738c7c184b to your computer and use it in GitHub Desktop.
automatic capture screen for osx
#!/usr/bin/env bash
limit=20
delay=1
target_dir="`pwd`/capture"
mkdir -p $target_dir
echo "Start Capture"
echo "============="
for i in `seq 0 $limit`
do
target_path="${target_dir}/screenshot_`date +%s`.png"
screencapture -x $target_path
echo "saved ${target_path}"
sleep $delay
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment