This picture is FrameLabel sample of SDK.
I want to show label and name that I set like picture.
app.selection.label = "label"; // app.selection = [object TextFrame]
app.selection.name = "name";
What is show and property setting code?
You can't via JS, unless you first make a c++ plugin like the one in the SDK, and make it scriptable.
Retrieving data ...