To make things easier I'll give my example and go from there.
Say I have a bill in PDF form from an insurance company. I want Hazel to look at the contents and see if my bill is an Auto Policy, House policy, Life policy, etc. I know how to search for those things, but what I'm curious about is naming the file based on what Hazel finds. If it is an Auto Policy, I would like that in the name, etc. I guess I could do this in multiple rules, but if I could do it in a single rule that would be great. Possible?
Maybe an apple script would work, but I'm not very familiar with using it.