Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a script to a rule to auto-print messages as PDF to a specific Folder.

What I found was this: but it doesn't work for me on OS X 10.6.

I already know the Save to PDF command and that you can create simple aliases in the "PDF Services" folder, but I need something automated for this task.

I searched the web the whole morning and also tried to write my own Automator workflow but couldn't manage it

Any help is highly appreciated.

share|improve this question

The AppleScript that can be executed does not receive any input. It's therefore not easily possible to act on any specific email.

I had some success by setting the new email's background color in the mail rule (something I don't usually use, and then using that as a marker which emails need to be processed from the AppleScript via Mail's API. Other options are flagging and moving to a specialized folder.

The AppleScript executing afterwards can revert these marker actions.

It's also somewhat possible to use GUI scripting for the PDF export, but I couldn't get it to work reliably.

share|improve this answer
Thanks for the feedback. – pattulus May 24 '11 at 17:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.