Automatically rename current artboard to the name of the topmost visible object.
I don't know anything about scripting. I wanted to know if it were possible to make a script that will rename the artboard that is currently selected to the name of the topmost visible object. I have a 100+ glyphs to export and needed to be renamed its character. Now, what I've done is I have those 100+ glyphs stacked at the top each other and the way I'm gonna export those glyphs is by hiding the unneeded glyphs and only showing the glyph needed to export. I also can't use multiple artboard because the required artboard size of fontforge is 1000px by 1000px and the file will be too large if I make multiple artboard for each glyph.
This is the image of the glyph I want to export (That's my handwritting).

This is the image of the stacked glyphs.

