Does anyone have a predicate function that determines whether or not a command was invoked from a menu-bar menu?

That would be helpful.

Bob