C-Command Software Forum

Bulk Saving WebPages as PDF using paparazzi

There is very nice script to convert webarchive to pdf http://c-command.com/scripts/eaglefiler/web-archive-to-pdf, but sometimes it cropping page…

Example webarchive https://www.dropbox.com/s/htil0w7qx1ca9aa/Email%20%3A%20kseniya.swisspack%40gmail.com.webarchive?dl=0
Example bad conversation https://www.dropbox.com/s/p2neer19ghmqdpp/Email%20%3A%20kseniya.swisspack%40gmail.com%20copy.pdf?dl=0

There is utility Paparazzi to convert url and webarchive to PDF single page.
There is a script to work with safari url.

tell application “Safari”
set theURL to URL of front document
set theTitle to name of current tab of window 1 as text
end tell

tell application “Paparazzi!”
launch hidden
set minsize to {1024, 768}
capture theURL min size minsize
repeat while busy
– To wait until the page is loaded.
end repeat
save as PDF in (POSIX path of “/Users/z/Dropbox/Google/1 INBOX/Eaglefiler_inbox/Files/”) & “/” & theTitle & “.pdf”
quit
end tell

Im not good with scripting…
How to make this script http://c-command.com/scripts/eaglefiler/web-archive-to-pdf work with paparazzi

It looks like Paparazzi is creating a fresh PDF from the Web page, not converting a Web archive. If that’s what you want to do, you can just have EagleFiler import the URL in single page mode:

tell application "EagleFiler"
    tell library document 1
        set _url to "http://www.apple.com"
        import URLs {_url} Web page format PDF single page format
    end tell
end tell

Or you could set the format in EagleFiler’s preferences and then paste all the URLs into the Import URLs… window.

No its not what i want. Paparazzi can capture webarchive with simple drag n drop or open in and save it as PDF or Image… i jast need to do the script http://c-command.com/scripts/eaglefi...archive-to-pdf with paparazzi.

in safari paparazzi script is
tell application “Safari”
set theURL to URL of front document
set theTitle to name of current tab of window 1 as text
end tell

tell application “Paparazzi!”
launch hidden
set minsize to {1024, 768}
capture theURL min size minsize
repeat while busy
– To wait until the page is loaded.
end repeat
save as PDF in (POSIX path of “/Users/z/Dropbox/Google/1 INBOX/Eaglefiler_inbox/Files/”) & “/” & theTitle & “.pdf”
quit
end tell

How to do the same but with eaglefiler,

That script is specifically designed for EagleFiler. I don’t know if Paparazzi has equivalent functionality. You could ask its developer.

Eaglefiler script jast geting path to pdf, and paparazzi can create pdf to cpecific path, but my skills is LOW level to this))) I can pay to somebody to make this))

Sorry, but I don’t understand what you’re asking. Could you please restate what you want to do?