How to print a certain page of a PDF received from Hazel

时间:2017-08-05 12:04:24

标签: pdf applescript

is there a way to print a certain page from a PDF document, which was received from Hazel (www.noodlesoft.com) i.e. via AppleScript?

In my case I always want to print just the 1st page of a PDF document.

If yes, would someone be so kind and provide the code for this. I tried it with Automator, but you can not select the page which you want to print.

Thank you.

1 个答案:

答案 0 :(得分:0)

您可以使用CUPS编写脚本,如下所示:

do shell script "lp -o page-ranges=1 ~/Desktop/printpdf.pdf"