Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica; NotebookEvaluate inside CreateDialog

  1. May 21, 2012 #1

    ChristinaJ

    User Avatar
    Gold Member

    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 (Text):
    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
     
  2. jcsd
  3. May 23, 2012 #2

    ChristinaJ

    User Avatar
    Gold Member

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica; NotebookEvaluate inside CreateDialog
  1. In mathematica (Replies: 4)

  2. Mathematica NDSolve (Replies: 27)

Loading...