This does seem to be a case for automation and it’s a good idea, but I am not aware of an existing automation script for it. It’s possible to create a plugin to add to the core provided automations, so you could create this yourself or ask in Marketplace.