Using OS X Automator to Combine PDFs

Media_httpwwwjonathan_oiplw
It is no secret that I love my MacBook Pro. It runs today just like id did the day I purchased it almost 2 years ago. One of the built in features that I don't use enough is Automator. Introduced in Tiger as a "personal automation assistant", Automator allows end users to create workflows to perform repetitive tasks. While apple has an entire website dedicated to OS X Automation Automator remains a very under utilized application. Because of the way our office scanner works I find myself needing to combine multiple scanned PDF files on a very regular basis. While not a complicated task to complete it is one that I know could be, well, automated. Automator is a drag and drop interface. I was added the following actions to my workflow:
  • Ask for Finder Items - There were two options here. One was to call the files by name using the Get Finder Items command but I wanted to be able to use this workflow over and over on different file types.
  • Combine PDF Pages - This is where the magic happens.
  • Rename PDF Document - The file needs to be renamed so this command preps the document to be renamed.
  • Rename Finder Items - The document is then passed to the Rename Finder Items command to receive the name that I want. The file will be named 'Untitled' when it is passed from the Rename PDF Document command.
  • Move Finer Items - This final command moved the file where I want it.
This image is what the workflow will look like when it is all in place.
Media_httpwwwjonathan_clejf
I have two options when saving my workflow. I can save it as just that, a workflow, or I can save it as an application. There are advantages to both. I actually save them as both, The application will simply run the workflow. In this case the application will prompt me for the PDF files that I want to combine and then run the workflow on those items. If I use the workflow file I am able to modify the workflow before I run it.
Many Automator commands, or actions as they are formally called, are available for download on Apple's download site. Actions are also available from 3rd party sites like MacScripter.
Have a favorite Automator Action or workflow? We would love to hear from you in the comments section.

Technology Links of the Week (06/2/09)

OS X

15 Terminal commands to supercharge OS X - Great tips for OS X users comfortable running commands from the terminal

SQL

Connectivity Options for Microsoft SQL Server 2008 Integration Services - SSIS can change the way you look at SQL Server. This article shows many of the ways that you can connect to your data using SSIS.

Working with Analysis Services Cubes in SQL Server - Make your data sing the story you want from your data.

Change Tracking in SQL Server 2008 - Handy for auditing changes data in a SQL Server

We Loaded 1TB in 30 Minutes with SSIS, and So Can You - A great example of what can be done with SQL Server Integration Services.

VMware

VMware foresees mobile virtualization in 2010 - A look into the future of virtualization from the leading Hypervisor provider.

Web 2.0

Went Walkabout. Brought back Google Wave - This might be the open collaboration tool freelancers have all been looking for.

Windows

Microsoft Dynamic Disks cause iSCSI issues on reboot - This is something to keep in mind if you are using an iSCSI SAN