Hi Gimmy,
You need to use the GetMasterItem method to get the master menu item of the application menu.
You can refer to the following link:
https://docs.appeon.com/appeon_online_help/pb2019r2/powerscript_reference/ch10s287.html
For your issue, you can use the following code example to test and see if it works:
RibbonApplicationButtonItem lr_AppButton
RibbonApplicationMenu lr_AppMenu
RibbonMenuItem lr_MenuItem
Integer li_Return, li_count, i
string ls_tag, ls_text
ls_tag = "MyApp"
li_Return = rbb_1.GetItemByTag (ls_tag, lr_AppButton)
li_Return = lr_AppButton.getmenu( lr_AppMenu)
li_count = lr_AppMenu.getmasteritemcount( )
for i = 1 to li_count
li_Return = lr_AppMenu.GetMasterItem (i, lr_MenuItem)
ls_text = lr_MenuItem.text
ls_text = lr_MenuItem.tag //Get the tag
lr_MenuItem.text = ls_text + "1" //change the text content
lr_AppMenu.setmasteritem( i, lr_MenuItem) //reset the menuitem
next
lr_AppButton.setmenu( lr_AppMenu)
rbb_1.setapplicationbutton( lr_AppButton)
BTW, The GetItemByTag and GetItem functions can be used to get items including ApplicationButton, TabButton, Category, Panel, Group, LargeButton, SmallButton, CheckBox, and ComboBox; but cannot get RibbonMenuItem, RibbonApplicationMenu, and RibbonMenu. To get RibbonMenuItem, you can use the GetItem, GetMasterItem, and GetRecentItem functions. To get RibbonApplicationMenu and RibbonMenu, you can use the GetMenu and GetMenuByButtonHandle functions.
You can refer to the following link for detail.
https://docs.appeon.com/appeon_online_help/pb2019r2/powerscript_reference/ch10s269.html
Regards,