you could save those little scripts and run them all the time you need it, or you create a macroscript of it so you can setup hotkeys or put it in your quad menu.
macroscript BoxmodeOFF category: "Display as Box" Tooltip: "" buttonText: "Boxmode OFF"
(
for i in selection do
(
$.boxmode = off
)
)
macroscript BoxmodeON category: "Display as Box" Tooltip: "" buttonText: "Boxmode ON"
(
for i in selection do
(
$.boxmode = on
)
)
save those macros and run them once. afterwards you will find a new category in your customize dialog called Display as Box and there you should have to command: Boxmode ON and Boxmode OFF. then you can setup a hotkey or a new quadmenu as usual.