Skip to content

Instantly share code, notes, and snippets.

@jonobr1
Last active March 21, 2024 02:34
Show Gist options
  • Star 47 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • 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!

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