27

I have a file that I can't reopen because MMa was "Not Responding" and I had to shut it down.

I found links online to this: http://support.wolfram.com/kb/12423

I executed those two instructions in a new notebook, but no "NotebookRestore dialogue" appeared, whatever that is.

What am I missing here?

Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453
Jerry Guern
  • 4,602
  • 18
  • 47
  • http://mathematica.stackexchange.com/search?q=[notebooks]+corrupted – Dr. belisarius Sep 02 '15 at 07:27
  • @belisarius Not one useful answer in any of that. I tried Daniel W's CleanNotebookOpen[] program, but the Import[] failed because of the corruption. – Jerry Guern Sep 02 '15 at 08:02
  • @belisarius MMa seems to be upset that the file doesn't end properly, so it won't open it at all. Is there some way I can just pick a spot in the text file and insert an is will like? – Jerry Guern Sep 02 '15 at 08:04
  • I don't know of anything of general applicability, sorry. Been there a few times with different outcomes.Mostly an artisan trade. – Dr. belisarius Sep 02 '15 at 08:13
  • 1
    I'd use a simple ASCII editor to open the file and see whether it would be possible to salvage complete cells from it and perhaps try to close unclosed (because of missing closing brackets) function code. – Sjoerd C. de Vries Sep 02 '15 at 08:43
  • 1
    Can you try the following, but with a copy of your corrupted file: Needs["AuthorTools`"]; NotebookRestore[] –  Sep 02 '15 at 09:11
  • @Lou THAT WORKED!!! Thank you, you saved me many hours of pain and irritation. If you want to put that into an Answer, I'll Accept it and your heroism will receive wider acknowledgment. – Jerry Guern Sep 02 '15 at 10:47
  • 1
    @Jerry Guern, I like your your choice of words. –  Sep 02 '15 at 13:08
  • Be sure to use something like https://github.com/joshburkart/mathematica-autobackup in the future. – masterxilo Mar 10 '17 at 22:18

1 Answers1

31

You can try the following, but with a copy of your corrupted file:

Needs["AuthorTools`"] 
NotebookRestore[] 

which opens a new window.

N.B.: works on "10.0.2.0 for Mac OS X x86 (64-bit) (December 4, 2014)"