Combine Existing PDFs in FileMaker Using AppleScript

By September 24, 2015 September 5th, 2019 2 Comments
Combine PDF
When creating a PDF from FileMaker you have the ability to append your new PDF onto an existing PDF. This feature was introduced in FileMaker 8, and is extremely helpful. However, what if you have 2 (or more) existing PDFs that you need to combine? What if you want the first PDF to be generated from FileMaker, but the 2nd one, for example, is uploaded by the user? The solution I found to this problem was introduced to me by my colleague Mike Duncan. You can use AppleScript to combine the PDFs for you.
Unfortunately AppleScript is only available on Macs, so this solution will not work on Windows machines.
In the sample file below, you will see a demonstration on how to combine 2 PDFs using AppleScript. You will create a shell script that leverages Automator’s combine PDF function, and then run that shell script using AppleScript.

Download Sample File

Note: The sample file has been updated to deal with spaces in the hard drive’s name. Thanks to Scott Morabito and Anders Monsen for pointing that out!
Makah Encarnacao

Makah Encarnacao

Makah is a Senior Technical Project Lead that hails from Albuquerque, NM. She joined Soliant a few months after graduating from UCLA in 2007, and must like it a lot because she’s still here! She is certified in FileMaker 9, 10, 11, 12, 13, 14, 15, 16 and 17, and placed 4th in the 2015 FileMaker DevCon Developer Cup. She was a speaker at the 2016 and 2018 FileMaker Conference. When she is not coding, she is enjoying life with her family that recently increased by 1.


Leave a Reply

Need to adjust your business processes quickly? We're helping clients use technology to keep their teams productive and running smoothly in these times of uncertainty. Our team can guide yours if you need help in these areas.

Talk to a Consultant