HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Auto Screenshot Anything to PDF on Mac completely free using automator

5,440 views November 15, 2018 3:05

Watch on YouTube
ChannelEverything Mac

Description from the creator

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: jhvidt.dk/EverythingMac/Save%20homepage%20to%20…

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

About this tutorial

Everything Mac published this 3:05 video tutorial on November 15, 2018. It has been watched 5,440 times on YouTube.

Duration
3:05
Published
November 15, 2018
Views
5,440
Likes
73

Share

This tutorial in other languages