Last active
October 1, 2017 15:52
-
-
Save cambecc/60156f771f40e9ada6809ba2c558ab18 to your computer and use it in GitHub Desktop.
earth.nullschool.net screencapture applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Google Chrome" to activate | |
tell application "System Events" | |
set target to "~/Desktop/timelapse/sample/" | |
do shell script ("mkdir -p " & target) | |
delay 1 | |
set i to 0 | |
repeat 480 times | |
keystroke "k" | |
delay 5 | |
do shell script ("screencapture " & target & "frame-$(printf %05d " & i & ").png") | |
set i to i + 1 | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment