New Reply

Mathematica; NotebookEvaluate inside CreateDialog

 
Share Thread Thread Tools
May21-12, 03:38 PM   #1
 
Blog Entries: 3

Mathematica; NotebookEvaluate inside CreateDialog


The following creates a button window to select a notebook to run. When a button is pressed Mathematica finds the notebook but cannot evaluate it. The following error occurs
Could not process unknown packet "1"
Code:
CreateDialog[
  DialogNotebook[{Column[{TextCell[
       Row[{Style["I would like to ...", FontWeight -> Bold]}], 
       "Text"], 
      Row[{Button["run 1", 
         NotebookEvaluate[
          "/../file1.nb"]],
        Button["run 2", 
         NotebookEvaluate[
          "/../file2.nb"]],
        Button["run 3", 
         NotebookEvaluate[
          "/../file3.nb"]]}], Button["Done", DialogReturn[]]}]}]];
This occurs under Mathematica 8 on all platforms.

Any help greatly appreciated,
Christina
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Bird's playlist could signal mental strengths and weaknesses
>> Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms
>> Bacterium uses natural 'thermometer' to trigger diarrheal disease, scientists find
May23-12, 08:13 AM   #2
 
Blog Entries: 3
Solved here thanks to http://mathematica.stackexchange.com/. The issue was with Button and not CreateDialog.
New Reply

Tags
button, createdialog, mathematica, notebookevaluate
Thread Tools


Similar Threads for: Mathematica; NotebookEvaluate inside CreateDialog
Thread Forum Replies
Mathematica: Module inside For loop Math & Science Software 2
Mathematica: Please help me to improve the summation codes inside Do-Loop Math & Science Software 10
inside out General Math 7
Field inside a cavity inside a conductor Introductory Physics Homework 3
If ia charge is placed inside a conductor, is the electric field inside zero? Introductory Physics Homework 1