I am trying to write some code that does the following...
- Closes the current notebook, then
- Prompts user to decide if they want to save change before closing, then
- Waits for user to submit their choice, then after user submits choice..
- Opens another notebook.
For example, the snippet of my code that I am working on looks something like this...
NotebookClose[InputNotebook[], Interactive -> True];
NotebookOpen["/Users/michaelmccain/Desktop/3.6.nb"];
I run the program... But it doesn't do what I want.It doesn't wait for me answer the prompt. That is... it doesn't satisfy #3. I'm not sure how to force Mathematica to wait for an answer before opening the next notebook. Any ideas?