Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MessiDaGod/9f60ed318d4cfbf84ebab27dfb81d447 to your computer and use it in GitHub Desktop.
Save MessiDaGod/9f60ed318d4cfbf84ebab27dfb81d447 to your computer and use it in GitHub Desktop.
set dateObj to (current date)
set theMonth to month of dateObj as number
set theDay to day of dateObj
set theYear to year of dateObj
set dateStamp to "" & theMonth & theDay & theYear
dateStamp
set dFolder to "~/Documents/MoveCU/ScreenCaptures/" & dateStamp & "/"
do shell script ("mkdir -p " & dFolder)
set i to 0
repeat 960 times
do shell script ("screencapture -D1 -R 0,0,3000,1930 " & dFolder & "Screenshots-" & dateStamp & "_" & i & ".png")
delay 600 -- Wait for 10 minutes
set i to i + 1
end repeat
return input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment