Remember a file as handled
Records that a rule handled a file, so a later condition can ask when it last did (Hazel's Date Last Matched).
Remember that path was handled
Details #
Keeps the file's path and the time in the shared variable shared.hazel.<key>. A fileAttribute condition with the attribute LastMatched and state set to the same key then reads it: "not matched in the last day". Entries older than 90 days are dropped each time the step runs, so the record stays small.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
key | text | The name of the record. The macro's id by default; the importer uses the macro and rule. | ||
path | text | The file. Optional when a file trigger fired. | ||
source | text |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Remember a file as handled
Do
- Remember that “Report.pdf” was handled
Gotchas #
It changes only the shared variable, never the file.
In a dry run it changes nothing and says what it would do.