Created
July 13, 2016 21:30
-
-
Save dmgig/1b1385500452775a0b09d3925f59366d to your computer and use it in GitHub Desktop.
Take screenshot, remove all older than 2 weeks (mac, requires cron job)
This file contains hidden or 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
#!/bin/bah | |
/usr/sbin/screencapture -t jpg -x ~/Desktop/screenshots/$(date +%Y\-%m\-%d\_%H.%M.%S).jpg; | |
find ~/Desktop/screenshots/ -type f -name '*.jpg' -mtime +14 -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment