How could a script command discover it was called from a (tab) context menu?
There is scriptCmdData.func.fromdrop
and scriptCmdData.func.fromkey
but detecting the context menu seems tricky.
The idea is to automatically use tab.all
instead of tab.selected
in the script.