Skip to content

Instantly share code, notes, and snippets.

@sscotth
Last active January 27, 2021 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sscotth/b813c931689cb84634afe895e27edbf0 to your computer and use it in GitHub Desktop.
Save sscotth/b813c931689cb84634afe895e27edbf0 to your computer and use it in GitHub Desktop.
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