I've been trying to use Hazel to watch a folder and when a file containing a specific word (like "statement") comes into that folder then action is taken on it.
I want Hazel to get an existing PDF file and combine the newly created PDF with it so the newly created PDF is at the end of the existing PDF. Then I want to delete the previous newly created PDF and have the combined file replace the previous existing PDF file.
I've been trying to make an automator workflow to do this but I can't figure out how to get the newly found PDF file to pass into the workflow.
This is what I have:
Hazel's rules are:
If name contains "statement"
Run automator workflow "combine pdfs"
The automator workflow is:
Get Specified Finder Items (here is where I get the existing file "2012 Statements" and "newly created pdf "Statement"
Combine PDF Pages (appending pages)
Move Finder Items to "Bank" (with "replace existing files" unchecked)
Rename PDF documents (with "replace existing files" unchecked)
Name Single Item with "Basename only" to "New File" (I want to replace the existing file "2012 Statements" but it the automator workflow won't do that and I haven't been able to get Hazel to do it either.)
So, I've got the combined PDF document, now called "New File" but I need to delete the old "2012 Statements" file and change the "New File" to say "2012 Statements"
And I want Hazel to now delete the file in the folder she's watching called "Statement" so that it's ready for the next time a file like that is created.
Any ideas . . . anyone? . . . anyone?