FYI
I used stand alone parts of Michael's ToolBar Button extension for compacting and emptying trash. See:
https://codefisher.org/toolbar_button/button_list/

for a list.

BTW trying to do a reply but that was not working.