There might be a really roundabout way such as:
- Have Hazel rename the file when moving
- In folder 2, if a file exists that has the same name as the file but with a number after it, move the file to archive.
- In folder 2, if the file matches the pattern where it has a dash and number at the end (i.e. when Hazel renamed it), renamed it without the number.
To do the last couple steps, you need to hold down option while clicking the + button to create a new condition. That will create a nested condition. You'd need to do two levels of that, first targeting the enclosing folder, then targeting "any of its subfiles" on that.
Or you can write a script.
