Autorun script on new document in group

Hi,

Is there a way we can auto run a script on a document newly added to a group? The workflow would be to auto classify a document in a group and then, auto run a script to rename it.

thank you.

The only automatically executed scripts are “attached scripts” (see Info panel) but they’re executed after opening/viewing the item (e.g. a group).