Last active
January 27, 2021 03:47
-
-
Save sscotth/b813c931689cb84634afe895e27edbf0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
on run {input, parameters} | |
set dir_name to do shell script "date -u '+%Y%m%dT%H%M%SZ'" | |
do shell script "mkdir -p ~/Desktop/Screenshots/" & dir_name | |
tell application "VMware Fusion" | |
activate | |
# Large | |
# do shell script "screencapture -R1810,180,2130,3600 ~/Desktop/Screenshots/$(date -u '+%Y%m%dT%H%M%SZ').png" | |
delay 2 | |
# Medium | |
# do shell script "screencapture -R1810,390,2130,3120 ~/Desktop/Screenshots/$(date -u '+%Y%m%dT%H%M%SZ').png" | |
# delay 1 | |
# tell application "System Events" to key code 124 | |
# delay 1 | |
end tell | |
repeat 100 times | |
tell application "VMware Fusion" | |
activate | |
# do shell script "screencapture -R1810,390,2130,3120 ~/Desktop/Screenshots/$(date -u '+%Y%m%dT%H%M%SZ').png" | |
# FULL SCREEN | |
do shell script "screencapture -D 3 ~/Desktop/Screenshots/" & dir_name & "/$(date -u '+%Y%m%dT%H%M%SZ').png" | |
delay 5 | |
do shell script "screencapture -D 3 ~/Desktop/Screenshots/" & dir_name & "/$(date -u '+%Y%m%dT%H%M%SZ').png" | |
delay 5 | |
do shell script "screencapture -D 3 ~/Desktop/Screenshots/" & dir_name & "/$(date -u '+%Y%m%dT%H%M%SZ').png" | |
delay 1 | |
tell application "System Events" to key code 125 | |
delay 1 | |
end tell | |
# tell application "Automator" | |
# activate | |
# delay 1 | |
# end tell | |
end repeat | |
tell application "Finder" | |
activate | |
delay 1 | |
end tell | |
return input | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment