Skip to content

Instantly share code, notes, and snippets.

@jmk
Created September 11, 2014 22:27
Show Gist options
  • Save jmk/d77585d728ec86c3a2ab to your computer and use it in GitHub Desktop.
Save jmk/d77585d728ec86c3a2ab to your computer and use it in GitHub Desktop.
screen capture timelapse script
interval = 60 * 5
import time, os
while (True):
cmd = "/usr/sbin/screencapture -C -t jpg -x %f.jpg" % time.time()
print cmd
os.system(cmd)
time.sleep(interval)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment