Skip to content

Instantly share code, notes, and snippets.

@jamesnesfield
Last active August 29, 2015 14:07
Show Gist options
  • Save jamesnesfield/bc5a6d1eecdcddcfaec5 to your computer and use it in GitHub Desktop.
Save jamesnesfield/bc5a6d1eecdcddcfaec5 to your computer and use it in GitHub Desktop.
[mac] take a screenshot every minute during the techcrunch hackathon - for audit and awesomeness - and to make a nice timelapse video afterwards.
## OPEN OSX'S "SCRIPT EDITOR" APP AND PASTE ME IN, OR USE "SCRIPT EDITOR" TO SAVE ME AS A PROPER APP :)
tell application "Finder"
repeat with ii from 0 to 1440
set sc to "/usr/sbin/screencapture \"" & POSIX path of (path to desktop as string) & "TC_hack_" & (current date) & ".png\""
do shell script sc
delay 60
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment