Merge PDFs with Apple Script

Discussion in 'Mac Programming' started by vloryan, Feb 24, 2016.

  1. vloryan macrumors member

    Jan 11, 2014
    hi guys, i am desperately writing this post after 12 hours of trying, googleing, etc... i need to write an apple script that merges all pdfs within a folder and rename that merged pdf into filename-merged.pdf. can anybody out there help me on this? thanks so much for your help!
  2. superscape macrumors 6502a


    Feb 12, 2008
    East Riding of Yorkshire, UK
  3. briloronmacrumo macrumors 6502


    Jan 25, 2008
    A manual solution is not difficult and if this is a one shot event it might be easier than an automated solution.

    1. Open the first pdf document in Preview
    2. Select the Edit menu option Insert>Page from File...
    3. In the dialog that appears select all the remaining pdf files (using Cmd-Click or shift click to select multiple files ---or all of them )
    4. Save the resulting pdf file which contains all the previously selected pdf files by choosing File>Export as PDF...

Share This Page