Recursive directory matching + Run Automator Workflow – Help

Hi –
I hate to admit that I'm so dense that I just don't get the logic, but here's what I'm trying to do:
• I have a website directory with scores of subdirectories.
• In each subdirectory, there are dozens of PDFs
• I want to make a plaintext version of each PDF
• I want the plaintext versions to be created in place, right next to their source PDFs
At first I thought could accomplish this solely with Automator, but I can only get it to convert one PDF to plaintext at a time (and there are over a thousand) Then I thought I could get Hazel to easily help me, so I made this Hazel workflow:
Root Folder->
1) Get Root Folder Contents Recursively
-> If all conditions:
- Kind is Folder
-> Do the following
- Run rules on folder contents
2) Find all the PDFs, Convert to TXT
-> If all conditions:
- Kind is PDF
-> Do the following:
- Run Automator workflow
{Extract PDF Text Hazel.workflow}
https://www.dropbox.com/s/zl9vtkw1n9zzm ... rkflow.png

Sadly, this hangs on the first folder/file, and just outputs a single blank plaintext file.
BUT, if I modify Hazel to COPY all the recursive directory structure PDFs it finds, then I can easily run the workflow against that single directory by selecting all files at the dialog window, and the conversions are all done in a snap! So, I must be missing something obvious here – either in the Automator workflow applet, or the Hazel configuration.
If anyone could help, I'd sure appreciate it.
- Rupert
I hate to admit that I'm so dense that I just don't get the logic, but here's what I'm trying to do:
• I have a website directory with scores of subdirectories.
• In each subdirectory, there are dozens of PDFs
• I want to make a plaintext version of each PDF
• I want the plaintext versions to be created in place, right next to their source PDFs
At first I thought could accomplish this solely with Automator, but I can only get it to convert one PDF to plaintext at a time (and there are over a thousand) Then I thought I could get Hazel to easily help me, so I made this Hazel workflow:
Root Folder->
1) Get Root Folder Contents Recursively
-> If all conditions:
- Kind is Folder
-> Do the following
- Run rules on folder contents
2) Find all the PDFs, Convert to TXT
-> If all conditions:
- Kind is PDF
-> Do the following:
- Run Automator workflow
{Extract PDF Text Hazel.workflow}
https://www.dropbox.com/s/zl9vtkw1n9zzm ... rkflow.png

Sadly, this hangs on the first folder/file, and just outputs a single blank plaintext file.
BUT, if I modify Hazel to COPY all the recursive directory structure PDFs it finds, then I can easily run the workflow against that single directory by selecting all files at the dialog window, and the conversions are all done in a snap! So, I must be missing something obvious here – either in the Automator workflow applet, or the Hazel configuration.
If anyone could help, I'd sure appreciate it.
- Rupert