I can't update display order

I am trying to update the display order items with this external applescript, but it doesn't work:

set nomFloatingMenu to "Mainstatusbar_TotalmixStatus"
set speakerB to "SpeakerB_statusbar_icon"
tell application "BetterTouchTool" to update_menu_item menu_name nomFloatingMenu item_name speakerB json "{BTTMenuItemDisplayOrder: '69' }"

This code inside the Script section of the item in the floating menu doesn't update the display order:

on itemScript(itemUUID)
return "{BTTMenuItemDisplayOrder: '64'}"
end itemScript

What I am doing wrong?

Thanks
Jordi

True. the display order can not be updated yet (it is evaluated before the items are rendered). I'll fix that with one of the next alphas.

1 Like

@Andreas_Hegenberg

I am trying to update the width of an item from script editor.

It returns done but nothing changes.

Is the code correct or is this property pending?

update_menu_item current application menu_name "Mainmenubar_Name_Frontmost_App" item_name "Mainmenubar_Name_Frontmost_App_button" json "{BTTMenuItemMinWidth: '500' }"
	--> "done"
update_menu_item current application menu_name "Mainmenubar_Name_Frontmost_App" item_name "Mainmenubar_Name_Frontmost_App_button" json "{BTTMenuItemMaxWidth: '500' }"
	--> "done"

Thanks!