Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a collection of image files grouped into folders named Project_01, Project_02, etc. Using Automator, I have composed a workflow that asks the user for a folder, and combines the images in that folder into a single PDF document. The destination folder for the output PDF file can be determined with a variable; however, the file name field of the action expects a constant string.

Is there any way, maybe through renaming, that I can Automator have the output file give the name of the containing folder, e.g. Project_01.pdf?

share|improve this question
up vote 1 down vote accepted

If you already have a variable with the name you want, the easiest way would be to add a Rename Finder Items action after the PDF is created. Set it to Name Single Item, and you can just drag in the variable as the new name.

rename finder items

share|improve this answer
That's exactly what I needed. Thank you! I didn't even know the variables view existed until now! – waldrumpus Dec 22 '12 at 8:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.