neosarchizo
neosarchizo

Reputation: 678

How to run an applescript when a print window pops up?

I have to save many htmls as pdfs. When a print window pops up, I manually click options for saving pdfs. I want to automate this task by applescript. But I don't know how to run an applescript when a print window pops up?

enter image description here

Upvotes: 0

Views: 568

Answers (1)

PHennessey
PHennessey

Reputation: 196

There are a few solutions on this page:

https://superuser.com/questions/257290/how-to-record-a-macro-that-saves-web-pages-as-pdf-in-osx

Not sure if this will work for you, but it's probably a start.

Upvotes: 1

Related Questions