Skip to content

Instantly share code, notes, and snippets.

@jonobr1
Last active September 6, 2024 19:20
Show Gist options
  • Save jonobr1/a91c166a94a65e64c9b7 to your computer and use it in GitHub Desktop.
Save jonobr1/a91c166a94a65e64c9b7 to your computer and use it in GitHub Desktop.
A small AppleScript to take a screenshot every 30 seconds for 8 hours. Saves to an Image Sequence in a desktop folder. Great for recording your workday.
set dFolder to "~/Desktop/screencapture/"
do shell script ("mkdir -p " & dFolder)
set i to 0
repeat 960 times
do shell script ("screencapture " & dFolder & "frame-" & i & ".png")
delay 30 -- Wait for 30 seconds.
set i to i + 1
end repeat
@frogstomper
Copy link

Thanks so much. Exactly what I need. Now I just need to find a way to automatically OCR every screenshot

@arn4v
Copy link

arn4v commented Jan 22, 2024

@frogstomper Did you find a way? :)

@arn4v
Copy link

arn4v commented Jan 22, 2024

I found this project that takes a screenshot every 2 seconds and OCRs them: https://github.com/jasonjmcghee/rem

@frogstomper
Copy link

@frogstomper Did you find a way? :)

No I didn't. Wow, thanks for forwarding that project. I'll check it out!

@iWindmill
Copy link

@jonobr1 , hi. Thanks for the script! It works. Is it possible to take a screenshot of both the main screen and the second connected screen?

@jonobr1
Copy link
Author

jonobr1 commented Sep 6, 2024

@iWindmill based on this answer you should be able to append more file outputs and it'll take from other screens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment