Append Current glyph name to Notes

Hello,
I’m trying to append currently opened glyph name to Notes tab in Font Info.

I searched the forum and found this code to get the current glyph name.

I’m unable to append the name to Notes in Font Info.

Please help, thanks.

tab = Font.currentTab
currentGlyphName = "* " + tab.composedLayers[tab.layersCursor - 1].parent.name
print (currentGlyphName)

Font.note.append(currentGlyphName)

The GSFont.note property is a str type, not list, as documented in the Glyphs Python API. You need to use GSFont.note += "your text".

Thank you very much.