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
@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