Apple - How do I print a selected email to PDF using Automator?

You're on the right track, and @mankoff's answer is spot on. I'll elaborate in case you need more details.

For reference, you could read Apple's developer document on PDF workflows or, more simply, this great step-by-step guide to creating the sort of PDF workflow you want.

As a summary...

  • First open Automator and create a Print Plugin.

enter image description here

  • Then select an action to move your PDF to a folder of your choice.

enter image description here

  • Save the workflow with a meaningful name. It will automatically be placed in the correct folder (~/Library/PDF Services).

  • Now, when you are in Mail, you can select your workflow from the PDF menu of the Print dialog box. Your PDF will be generated and automatically filed in the folder you specified.

enter image description here


Make your script and put it in /Library/PDF Services/ or ~Library/PDF Services/. Then, from anywhere, Print (CMD+P), and select your workflow from the dropdown menu under "PDF".

For example, my workflow takes the name of the file (usually the website name, but sometimes something generic or unhelpful) and appends YYYY-MM-DD-HH-MM.pdf and puts it in the ~/Documents/receipts/ folder.

Tags:

Pdf

Automator