Rename all Layers created in the same time

Hi there! I’m wondering if there is a script that would rename all my layers created in the same time. Let’s say I have a Light master and I make 1 layer for all the glyphs I would like to rename that layer “before optical correction” for example for all the glyphs at the same time. Is there a way to do that?

Ok this answers my own question! Thank you!

Screenshot 2023-12-05 at 16.27.23