Browse the docs

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 #

ParameterTypeRequiredValuesWhat it does
keytextThe name of the record. The macro's id by default; the importer uses the macro and rule.
pathtextThe file. Optional when a file trigger fired.
sourcetext

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Remember a file as handled
Do
  1. Remember that “Report.pdf” was handled
Open in Switchboard to try it

Gotchas #

  • It changes only the shared variable, never the file.

  • In a dry run it changes nothing and says what it would do.

See also #

Move or sort a file