Replace part (but not all) of a filename with a folder name?

Hi,
I'm new to Hazel and I'd like to replace part (but not all) of a filename with a folder name? For new projects I have a template with many files that have the word "generic" in the filename. Currently, I manually rename each of these by copying and pasting the folder name - like this:
Folder Name: Project A
Files in Project A folder:
generic - word.doc
generic - spreadsheet.xls
generic - proposal.doc
I now manually rename these files to look like this:
Project A - word.doc
Project A - spreadsheet.xls
Project A - proposal.doc
How do I use Hazel to do this for me when I apply rule to the Project A folder? I've been able to rename files, but that wipes out the entire file name and I get something like this:
Project A.doc
Project A-1.xls
Project A-2.doc
What am I missing? I think it involves replace text (replacing "generic" with "Project A"), but I can't work out how to do it.
Any ideas?
I'm new to Hazel and I'd like to replace part (but not all) of a filename with a folder name? For new projects I have a template with many files that have the word "generic" in the filename. Currently, I manually rename each of these by copying and pasting the folder name - like this:
Folder Name: Project A
Files in Project A folder:
generic - word.doc
generic - spreadsheet.xls
generic - proposal.doc
I now manually rename these files to look like this:
Project A - word.doc
Project A - spreadsheet.xls
Project A - proposal.doc
How do I use Hazel to do this for me when I apply rule to the Project A folder? I've been able to rename files, but that wipes out the entire file name and I get something like this:
Project A.doc
Project A-1.xls
Project A-2.doc
What am I missing? I think it involves replace text (replacing "generic" with "Project A"), but I can't work out how to do it.
Any ideas?