Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Use Automator to combine PDFs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Automator to combine PDFs
Authored by: billpenn on Jan 15, '13 10:28:58PM

Here is something a little more robust that is completely automatic and places the resulting combined pdf in the containing directory of the file or folder you pass into automator via a service in the right click contextual menu in the finder:

1. Create a new service in Automator
2. Set the Service to receive files and folders in Finder.app
3. Set Value of Variable: Input
4. Run AppleScript

on run {input}
tell application "Finder"
set theFilePath to (container of (first item of input)) as alias
end tell
return theFilePath
end run

5. Set Value of Variable: Path
6. Get Value of Variable: Input (set the option to ignore input)
7. Get Folder Contents
8. Sort Finder Items by name in ascending order
9. Combine PDF Pages: Apending pages
10. Move Finder Items: to Path
11. Rename Finder Items: Name Single Item Name Basename only to _Combined



This packs together all the selected pdfs in finder or all the pdfs in a folder selected in the finder and places the result in the folder enclosing the selected finder item(s) with the name "_Combined.pdf" The files are combined in alphabetical order by their file name.

Once saved, the service will show up at the bottom of the contextual menu in Finder.



[ Reply to This | # ]
10.4: Use Automator to combine PDFs
Authored by: ophello on Jul 18, '13 10:30:11AM

I was not able to get this to work. Could you please post a screenshot of your workflow? I copied this exactly and I keep getting the PDF to output to the desktop.



[ Reply to This | # ]