I download dmg to my Downloads folder.
Once I open the DMG files and install the application, I'd like Hazel to delete it.
OK, not right away, but say a few hours after I've opened it.
Here are my rules:

Looks straightforward.
Now here is a .dmg file in my Downloads folder that was opened within the last 4 hours.

Why doesn't my Hazel rule now delete this file?