Print to PDF using Desktop Printer

Eric was asking if there was a way to print directly to a PDF without going through the Print dialog box. I knew that there wasn’t (currently) a way to do this in AppleScript. After some digging on Google, I think I found a good solution with the CUPS-PDF Package for Mac OS X. Now, I have a Desktop Printer icon on my Desktop, on which I can drag any file to create an instant PDF.

2 thoughts on “Print to PDF using Desktop Printer

  1. Thanks for the tip, Adam! I have the same. Although, when I drag a document to the printer and it opens, it stalls at the Print dialog, requiring me to hit Return. No big deal, but I wish there were a way to force the dialog to accept itself…

  2. Hi Adam,

    Some Mac OS X applications also allow to print documents via AppleScript without invoking the print dialog, examples are RagTime and Microsoft Word:

    tell app “RagTime 6”
    print layout 1 of document 1 without print dialog
    end tell

    tell app “Microsoft Word”
    do Visual Basic “ActiveDocument.PrintOut”
    end tell

    Combined with cups-pdf set as the default printer, this makes for a great solution for advanced PDF workflows (e.g. automated serial mailings with personalized PDF attachments).

    Just my 2 cents :)

    Best regards to California from frosty Germany!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: