Created
December 2, 2014 17:41
-
-
Save soundkitchen/ad30e27afa738c7c184b to your computer and use it in GitHub Desktop.
automatic capture screen for 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 | |
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