In r9531, the script tool icon is not shown in menubar when the menu key of the script tool contains ")" character. This is just a parsing problem and should be fixed with the attached patch.
I do not think that get_sound will work with that too. So maybe a little more effort is needed. Still submitted this, thank you.
script_tool_manager_t::fill_menu() does not take sound parameter. To be precise, the function ignores the sound argument.
But it should be possible to connect a sound to it, I think.
This parameter is ignored in all these fill_menu methods.
Probably the get_sound() call should go then as well. Although building definitively makes noise.