Skip to content

Instantly share code, notes, and snippets.

View andyylin's full-sized avatar

Andy andyylin

View GitHub Profile
@jonobr1
jonobr1 / auto-capture.scpt
Last active March 21, 2024 02:34
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
@yumu19
yumu19 / capture.sh
Last active January 15, 2021 02:52
Automatically Capture of Screenshots for Mac
#!/bin/bash
INTERVAL=60 #Interval of Capture Screen(seconds)
DIRNAME="${HOME}/Desktop/capture/"
if [ ! -e ${DIRNAME} ]; then
mkdir ${DIRNAME}
fi
while true