Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Automator Service: Combine PDFs Then Delete Originals

Hello All,


I've managed to create a service using Automator that combines PDF files, renames the newly created file, and moves it (http://www.documentsnap.com/how-to-combine-pdf-files-in-mac-osx-using-automator- to-make-a-service/).


What I am now trying to figure out is how I could have automator prompt me at the end to ask if I'd like to move the original files (PDFs) to the trash, and then do so upon confirmation. I haven't had any luck figuring this out on my own.



Does anyone out there know if this is possible?



Thanks!

Mac OS X (10.6.4)

Posted on Jun 15, 2011 10:12 AM

Reply
Question marked as Best reply

Posted on Jun 16, 2011 7:42 PM

sure, it's possible. what you need to do is:

  1. add in a Set Value of Variable action right at the beginning
  2. at the end, add in an Ask for Confirmation action that asks if they want to delete the original files.
  3. after that add in a Get Value of Variable action for the variable in step 1
  4. then add a Move Finder Items to Trash action

first step stores the passed-in file references in a variable for later use, and passes them on to your script. the second step gets user input, stopping the workflow if the user cancels. the third step recovers the file references stored at the first step, and the last step deletes the files.

4 replies
Question marked as Best reply

Jun 16, 2011 7:42 PM in response to NDRisk

sure, it's possible. what you need to do is:

  1. add in a Set Value of Variable action right at the beginning
  2. at the end, add in an Ask for Confirmation action that asks if they want to delete the original files.
  3. after that add in a Get Value of Variable action for the variable in step 1
  4. then add a Move Finder Items to Trash action

first step stores the passed-in file references in a variable for later use, and passes them on to your script. the second step gets user input, stopping the workflow if the user cancels. the third step recovers the file references stored at the first step, and the last step deletes the files.

Automator Service: Combine PDFs Then Delete Originals

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.