Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I've created a custom menu in the Mathematica title bar (by editing MenuSetup.tr) that executes code using KernelExecute. These pieces of code may sometimes produce error messages that I'm still interested in seeing, but they don't seem to come through, either to the SelectedNotebook[] or to the Messages console.

Is a different OutputStream used for commands executed through Mathematica menus? Is there a way to redirect the output and messages generated by these commands so that they're still visible to the user?

share|improve this question
2  
Those are the front-end messages... perhaps this answer might be useful: MathKernel doesn't return all Messages –  rm -rf Nov 14 '13 at 0:50
    
Unfortunately, the method in the linked thread doesn't seem to return my messages either. I'm currently using Check to determine whether or not any messages have been returned, but still can't figure out how to pull out exactly WHICH messages have been returned. I've tried using $MessageList and MessageList[] within the code executed in my Menu items as well, to no avail. –  bdot Nov 14 '13 at 18:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.