Waiting for several files to complete copying before running

Hi everyone
I'm trying to build a rule that runs an AppleScript to trigger another piece of software once copying a group of files into a folder is complete. I don't want the script to trigger ten times when copying ten files, I want to wait until the files are copied then run it once.
I feel like I am close to a solution using some comparison between the most recent added time and the current time, or something like setting a flag on a file if it's added time is among the most recent 1 and it's been more than five minutes, or something. But... I can't quite get there and it all feels a bit more complex than is sensible. So I think I must be missing something and thought I'd ask those with more experience to help. Usually with these things there is a much more elegant solution that has just passed me by.
I've only just upgraded to Hazel 5, so forgive me if I've missed something in the recent upgrade for this (I've mostly been trying to work this out in v4 but decided to upgrade as Hazel has been useful for years and it feels like time to pay a bit more!).
Open to any suggestions! Thanks
I'm trying to build a rule that runs an AppleScript to trigger another piece of software once copying a group of files into a folder is complete. I don't want the script to trigger ten times when copying ten files, I want to wait until the files are copied then run it once.
I feel like I am close to a solution using some comparison between the most recent added time and the current time, or something like setting a flag on a file if it's added time is among the most recent 1 and it's been more than five minutes, or something. But... I can't quite get there and it all feels a bit more complex than is sensible. So I think I must be missing something and thought I'd ask those with more experience to help. Usually with these things there is a much more elegant solution that has just passed me by.
I've only just upgraded to Hazel 5, so forgive me if I've missed something in the recent upgrade for this (I've mostly been trying to work this out in v4 but decided to upgrade as Hazel has been useful for years and it feels like time to pay a bit more!).
Open to any suggestions! Thanks
