The video explains how to use Automator to automatically capture a series of screenshots on your computer and putting them together into a single PDF file on your desktop.
The workflow can be downloaded from:
Good luck to all of you finding your way around in the very powerful Automator application on MacOS.
PS: I noticed will get an error first time you run the script, as the script tries to delete content of an empty folder. Just run the script once more for it to start working.
The AppleScript code to be copied and inserted is below:
tell application “Safari” to activate #Safari, Preview or whatever
delay 1
–Variables
set fileNames to “image”
set x to 1 as integer
set leftX to 962 as integer #use SHIFT + CMD + 4 to get coordinates
set leftY to 267 as integer
set rightX to 1556 as integer
set rightY to 751 as integer
set numberOfpages to 39 as integer #how pany pages?
repeat numberOfpages times
#make sure you have a folder named images on your desktop
set picPath to ((POSIX path of (path to desktop)) & “/images/” & fileNames & “-” & x & “.png”) as string
do shell script “screencapture -x -R” & leftX & “,” & leftY & “,” & rightX – leftX & “,” & rightY – leftY & ” ” & quoted form of picPath
set x to x + 1
tell application “System Events” #option 1: keyboard click
key code 124 #arrow right click on keyboard
end tell
#tell application “System Events” #option 2: mouse click
# click at {123, 456} #mouse click at location
#end tell
delay 0.1
end repeat
This article was gathered automatically by our news bot. We help YouTubers by driving traffic to them for free. The featured image in this article is the thumbnail of the embedded video.