Created
February 20, 2018 00:03
-
-
Save stephkoltun/567daafea450c21661b528c705071e09 to your computer and use it in GitHub Desktop.
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
set dFolder to "~/'Dropbox (Method)'/Projects/'2018-01 The Atlas Project'/screencapture/" | |
do shell script ("mkdir -p " & dFolder) | |
set pathToMouseTools to "Macintosh HD:Users:skoltun:Desktop:bin:MouseTools" | |
set xPos to 957 | |
set yPos to 692 | |
set xPosOff to 952 | |
set yPosOff to 688 | |
do shell script quoted form of POSIX path of pathToMouseTools & " -x " & (xPos as text) & " -y " & (yPos as text) | |
set i to 0 | |
repeat 14400 times | |
activate application "Google Chrome" | |
do shell script ("screencapture " & dFolder & "frame-" & i & ".png") | |
tell application "System Events" | |
tell process "Google Chrome" | |
set rem to i mod 20 | |
if (rem is equal to 0) then | |
keystroke "r" using {command down} | |
end if | |
delay 10 | |
click at {xPosOff, yPosOff} | |
end tell | |
end tell | |
delay 20 -- Wait for 30 seconds. | |
set i to i + 1 | |
end repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment