How to trigger a reminder if items with a given tag exist

Hi,

I have been using a smart rule script to automatically tag certain database items that need my attention.

Is there some way to be notified as soon as items with that tag exist?

The smart rule runs periodically, so I can’t just add a notification here as it would trigger whether or not items were actually tagged for maintenance.

Thanks in advance for any suggestions

Extending the existing script should be a possibility, therefore its source would be useful.

Here’s a link to the script. It marks items containing the same alias, so that this can be corrected by manually removing the alias from all but one of those items.

The script could be customized to show a notification via display notification (see StandardAdditions) after adding new tags.

Thank you, I will experiment with this.