Possible to get data from a script to a custom attribute?

I have a rule which OCRs scanned PDFs and puts the text into an xattr. Then I match on the contents of the xattr to decide what to do with it.
However, Hazel doesn't give me a way to natively match xattrs, so I have to use a "Passes shell script" condition. Because of that, I don't appear to have the opportunity to pull bits out into custom attributes, which means I can't (for instance) rename the file based on the xattr's contents (without resorting to
Am I missing something? Or am I stuck doing my actions in Bash if I want to use the info from the xattr?
However, Hazel doesn't give me a way to natively match xattrs, so I have to use a "Passes shell script" condition. Because of that, I don't appear to have the opportunity to pull bits out into custom attributes, which means I can't (for instance) rename the file based on the xattr's contents (without resorting to
- Code: Select all
mv
Am I missing something? Or am I stuck doing my actions in Bash if I want to use the info from the xattr?