These files are essentially all PDFs, each rules starts with a condition checking for the file kind as PDF and then has further conditions for content or one of the Spotlight metadata (like Where From or Description). So far so good. One provider though provides the PDF without extension. A file name might look like this:
- Code: Select all
Doc20180422201701
This is no problem for Preview, but unfortunately for Hazel: When I double click the downloaded file, Preview shows it as what it is: a PDF; Hazel on the other hand says it's kind is not PDF and content or metadata do not match either as expected.
What to do to identify the document and then move it accordingly?
ps: If I by hand add the PDF extension, so that the file name reads
- Code: Select all
Doc20180422201701.pdf
then Hazel recognises it and all condition magically become true as expected.