Text

Forms Developer Guides Scripting Interface Menu Option

TEXT(value)

var option = App.menu().option("Foo");
option.text() == "Foo";

option.text("String");
option.text() == "String";

Changes the button text of an existing custom menu option to the value.

If no value is given, the option's current text is returned.