Fixing Restore Windows Bug in Lion

I have encountered a bug with Lion’s application restore feature, which apparently works well with Cocoa Based applications, but not with other applications.

After I forced LibreOffice to quit, it apparently saved what windows was opened and when I tried to reopen the application, it popped up the restore windows dialog saying, “The application ‘LibreOffice’ was forced to quit while trying to restore its windows. Do you want to try to restore its windows again?”

Now, after this dialog appeared, I was unable to close it by ether button and there is no way around it.
I have found a fix for this issue (at least until you force quit the application again), which isn’t that hard to do. Just follow the following steps and if you have this issue, you can fix it.
1: Force quit the troubling application by right clicking (control or 2 fingers on the track pad as  you single click) and holding down option to replace the quit item with the Force Quit item (quitting does not work).
2: Create a new window in the Finder and select the Go menu, while you are in the Go menu, hold down the option key and select the Library menu which appears.
Untitled 3
3: Once you are in the Library folder, look for a folder named “Saved Application State” and open it.
Untitled 4
4: Inside of this folder is a bunch of folders, that has the name like {top level domain}.{domain name}.{application}.savedState, we are looking for this applications folder which would be org.libreoffice.script.savedState as script is the application, and is the domain of the site. You can find out the identifier of any application by downloading this application I made for this post you find the folder for your application you just delete it by moving to the trash.
Untitled 6
5: Relaunch the application with the problem and the problem should be gone.
Untitled 7
If you are any good with applescript, you could write an applet to do this for you by replacing the text in red with the identifier of the application:
do shell script “rm -rf ‘~/Library/Saved Application State/{IDENTIFER}.savedState'”


  1. Anonymous

    This was driving me crazy and your solution works! Thanks 🙂

  2. Liam

    Excellent, thanks for this!

  3. Anonymous

    Thank you so much! That is the ONLY solution i found in the net.

  4. Anonymous

    IT worked, thanks so much! I was really lost trying to do it, I use open office, and it worked perfectly your directions were simple..

  5. Mary

    I tried this with OpenOffice on Lion, and it didn't work….

  6. Roel

    Thanks .. that saved my day/week.
    I did try to fix it by disabling the "Save State Option" in System Preferences > General. But i guess that was already too late, and changing that option did not clean up the 'saved state folders' already exisiting.

  7. Anonymous

    I solved the same one in Lion. In the library direction there is a folder with the name CrashReporter. In that folder I found a file with a name that I figured belonged to open office. I removed that file and it worked again

    • Dorte Schou

      Thank you for that one!

    • Dorte Schou

      Thank you for that one … the missing link 🙂 now it worked!

  8. iCoderman

    Thanks, your manual helped me to resolve "Restore windows" problem… 🙂

  9. Mary

    Thank you for the suggestion, but I couldn't find any folder named CrashReporter, even when I searched my computer:/

  10. Anonymous

    Awesome, sir, now I can do my taxes in peace!

  11. Anonymous

    Thank you, it was literally bugging me…

  12. Anonymous

    Thank you… your post really help me…. Danupol Siamwalla

  13. Anonymous

    In Terminal write
    chflags nohidden ~/Library

    then go to users/%username%/Library/Saved Application State
    and just find the folder you need to delete

    • Anonymous

      Thanks that helped as well

    • Anonymous

      Thank you thank you and more thank you!!!

  14. Anonymous

    Thank you!

  15. Marnobre

    Thanks !!!!

  16. Brittani Hinman

    OMG Thank you sooooo much! I emailed you, and then as soon as it was sent I found the link to your blog! Thank you for posting this! I was really about to have a coronary if I didn't fix this. I am a college student and this was the only way I could view my class notes! Thank you!

  17. Main Event Mike

    Worked great! Thanks.

  18. Anonymous

    thanks!! the solution worked perfectly

  19. OptionInternet

    It doesn't work for me , i can not Click "Go" on finder because it just disappear with my Finder Problem it keeps re lunching every time and popping up!!!Please help !!

  20. Anonymous

    Thanks, worked for me.

  21. kieranishere

    Great, thanks for this.

  22. Anonymous

    My god that was driving me crazy and went through so many different solutions that didn't work but this did. Thanks a million.

  23. Anonymous

    You da man!

  24. Miha

    Thank you so much!!! This post was really useful and simple to understand. Open Office was getting on my nerves for days. Thanks to you it's all fixed now.

  25. Anonymous

    hey dude..

    I cant find the library on my computer?

  26. Anonymous

    Brilliant, Thanks. It's been bugging me for days.

  27. Anonymous

    Excellent solution, thanks!

  28. Anonymous

    Thank you. Couldn't find anything else online. You save me alot of time!

  29. BrisOwnWorld

    I had the same problem Mary and Anonymous did… in Lion, the library is hidden from the "go" menu. However, I found a fix. If you hold down the "option" key on your mac while looking in the "go" menu that this tutorial suggests, the library appears, and then you can follow this tutorial to fix it. Libre Office is working great for me again, so thanks!

    • Anonymous

      This is it, right here. Hold down that key… somehow there are 'hidden' files. Thanks SO VERY MUCH`!!!!

  30. Mr. Gecko

    Don't see how people miss this BrisOwnWorld… "while you are in the Go menu, hold down option" from above.

  31. markus

    tanks for the option go menu – Library trick 🙂 and thanks for the solution 🙂

  32. Anonymous

    great! it worked your my hero!!!!!

  33. Anonymous

    Thank you! You saved my day.

  34. Ben

    Thanks, worked like a charm!

  35. Anonymous

    Open Office works now!


    PS.I only had to delete the text file

  36. Anonymous

    love you geeks!

  37. Anonymous


  38. Anonymous

    Thank you! You're the best!

  39. Anonymous


  40. Anonymous

    Very nice, thanx!

    BTW: As a new Mac'er, I didn't know what the option key was, for me, it's the alt key that worked like a charm 😉

  41. Mugwump News and Gazette

    Thank you!!

  42. Anonymous

    Thank you!!

  43. Anonymous

    OMG! You are a life saver! I just fixed my ongoing for weeks problem that all most interfere with my academic paper. AWESOME! THANK YOU! Best lo luck! sz

  44. Anonymous

    You the Man!!

  45. Johann

    This was exactly what I needed! Awesome post, thank you very much! This was driving me crazy.

  46. Anonymous

    Many thanks for your help.

  47. Monique van Loon

    Thank so much for all the tips & tricks, but unfortunately none of them work for me. I tried everything in mac osx; search the Library folder (appearantly I don't have those folders, like Crash Reporter named in this topic), the Save State Option fixed the System Preferences, downloaded open offices in many versions… nothing works. Does someone have another magic solution? 🙁

    • grmrgecko

      What Operation system are you on? Go to the apple menu and choose about this mac.

  48. Monique van Loon

    Lion, 10.7.3…

    • grmrgecko

      So your seeing what I see at the top screen capture? If so, my steps of holding down option to view the library and so on should work.

  49. Anonymous

    perfect soln

  50. Anonymous

    had to thank you! Thanks!

  51. Anonymous

    THANK YOU!!!!

  52. Anonymous

    Another HUGE thank you.

  53. Ciera

    Oh my! Thank you so much!!

  54. Anonymous

    Thanks very much!

  55. geetarman

    Thanks! It help a lot!

  56. George

    Thank you very much!! Great help!

  57. Anonymous

    Thank you!

  58. Anonymous

    Thank you very much!

  59. Anonymous

    It worked! YAY!!! Thank you!!!!!

  60. Quentin

    It perfectly works, thank you very much !

  61. Anonymous

    Cool – Works….

  62. Anonymous

    Thanks. This fix worked like a charm.

    Perhaps you know how to fix the following problem. I have a file called "" which I simply cannot delete. I have tried all of the fixes I can find on the net.

    The sequence of events is always the same. I try whichever form of delete. The delete bar, with its barber pole appearance, appears. First it says "0 items to delete", it then changes to "7 items to delete", then to "6 items to delete", the compter then freezes for a while and eventually comes up with "The Finder can’t complete the operation because some data in “” can’t be read or written.
    (Error code -36)".

    Do you know how to getr rid of this file, or do I simply have to learn to live with an "Undeletable Trash" folder?

  63. Anonymous


  64. Anonymous

    i cannot find the saved application state folder 🙁 inside the library.

  65. selvaprabhu25

    Superb It's Working……… Thanks a lot………..

  66. Anonymous

    Oh, bless you and thank you for your brilliance.

  67. Anonymous


  68. Johnny Goodman

    Another happy customer. Thank you.

  69. Anonymous

    Thank you, such a relief to get this fixed.

    You are one clever and generous gentleman, again, thank you.

  70. mpsinfo

    Fantastic! Great help. It also helps me to learn a few other shortcut tricks.

  71. Anonymous

    thanks a lot…..

  72. Anonymous

    It worked for me Mary Lion 10.7.4. Thanks everyone!

  73. Anonymous

    Hi There,

    I couldn't find out the folder as"Saved Application State" to del the file!! But I found a folder as "CrashReporter", and what file i need to del from this folder to solve the bug…. ??


  74. Anonymous

    worked for me in my newly upgraded to mountain lion mac.

  75. Turbolego


    Worked on 10.7.4 with OO 3.4.0 Build 9590

  76. Anonymous

    AWESOME TIP!!!, Freeking Macs are getting worse! The library is a hidden folder if you can't find it.

  77. spartha

    Great! It worked like a charm. Pictures also helped a lot.

  78. Anonymous

    Thank you!

  79. Anonymous

    Hello, I'm having the same issue but on os x 10.7… thoughts?

  80. Isa

    Thanks a lot!

  81. Anonymous

    Holy shit balls thanks!! My life is now complete!

  82. Anonymous

    T.H.A.N.K. Y.O.U.!!!!
    Amazingly wonderful to get rid of that super annoying message!!

    Thanks again :)))

  83. Anonymous

    After I had finished throwing things around my office in frustration I looked, without expectation, for a solution to this problem (mine was OpenOffice related). I found your post almost immediately, tried it, it worked. You are a trooper!

    Rob Stevens

  84. Seth Nickeson

    Thank you so much!!! You would think they would fix this very serious bug!

  85. Sunilkumar Dukandar

    Thank you very much your solution worked fine.

  86. Anonymous

    Thanks you, sir.

  87. Ruth

    Thank you so much!!

  88. Anonymous

    Thank you very much!!!!!

  89. Anonymous

    Thanks a lot!

  90. Julio Cerezo A.

    Hola muchas gracias por la ayuda me sirvió

  91. Anonymous

    Thank you!!!!!!

  92. Anonymous

    Thank you!!! You are a life saver!!
    I would recommend you to update the post by adding also the command line to do it quickly using Terminal:

    rm -r /Users/USERNAME/Library/Saved Application State/org.libreoffice.script.savedState/


  93. Anonymous

    Thank you for your generosity in providing this solution. Being a "just knows enough to be dangersous" Mac user, I was able to follow this simple solution. All the best to you!

  94. Anonymous

    thnx a lot for ur solution!! It helped me in getting rid of this problem!

  95. Anonymous


  96. tomrowlands

    Thanks! Was going a bit crazy!

  97. Anonymous

    Worked for me! Thx a Bunch…

  98. Anonymous

    Thank you so much oh great macintosh master!!

  99. Anonymous

    Thank you so, so much! I've been avoiding OOo and Libre Office for months until I finally found this fix.

  100. Rainer

    James, many thx indeed, this has been a nuisance really, I wonder if OO or Apple care about this… :-/

  101. louislandon

    Thank you!!

  102. louislandon

    Thank you!!

  103. Charlie Seelig

    Thanks very much for posting this. It worked out quite well.

  104. Προώθηση Ιστοσελίδων

    I cant find the file Library can you help me? I am new to mac and i cant get rid of this message.

  105. Conor McGuire

    Thank you. Thank you. Thank you.

  106. Kevin

    Thank you this really helped me

  107. hagrid

    FINALLY! I am able to use again on my Mac! Thank you Mr. Gecko!

  108. hagrid

    FINALLY! I am able to use again on my Mac! Thank you Mr. Gecko!

  109. Anonymous

    Thanks so much!

  110. Anonymous

    Worked Great! Thanks!

  111. Mike Cowles

    It was a different openoffice folder for me, but you got me there and it worked. Thanks so much for taking the time to do the screenshots to walk us through it all.

    You DA man! =]
    Mike Cowles.

  112. Anonymous

    Thanks man – you rules 😉

  113. Phil Beardmore

    Sir, you are a genius.

  114. Anonymous

    You are the best!!!!

  115. Anonymous

    Thank you! So glad that's solved

  116. Anonymous

    yes! the problem was solved in 1 minute! Muchisimas Gracias!

  117. Anonymous

    🙁 There is no such folder in the library….No OpenOffice folder in /Application Support, nor Saved Application State

    • Margaret

      When I looked in Finder and found the Library but the Saved Application State wasn't there. However, when I when I held down the Option key while on the Go Menu, Library showed up and from there I found the Saved Application State folder. I was able to delete and the fix worked.

  118. Margaret

    Help! I found Library, but not in the drop down only when I clicked on the Finder icon. In Library, I don't have either Open Office or find Saved Application State folders. I don't know what you mean by typing "in Terminal". Can you help further?

    • Margaret

      Figured it out with some help and your solution worked! Thanks!

  119. Jeremy

    thank you thank you thank you!

  120. Anonymous

    Thank you thank you thank you:)

  121. rae

    Thank you so much for this solution!! Its amazing. 🙂

  122. TK

    Thank you soooo much!! It finally worked! I tried other alternatives and none of them worked, except yours!

  123. Anonymous

    Thank you from Japan!

  124. Anonymous

    Perfect! So pleasant to have a step by step solution for a non-techie person. You made my life better today.

  125. Anonymous

    Great..after searching the web for hours – THIS solution seems to work!

    greetings frpm Berlin

  126. Anonymous

    Thank you so much for the solution! It worked and saved me from ripping my hair 🙂

  127. Emma Oliver

    I'm not being given the force quit option when I right click…Please help!! Thanks

  128. Pinraatt

    I don't have "Library" on the Go menu. Please help.

  129. Anonymous

    Slight variation under OSX 10.9, but worked like a charm. My thanks added…

  130. Nhung Hoang

    Hi, I did all but none helped. It still there with the same bug. I deleted the scripts saved state! help me please!

  131. Nhung Hoang

    Hi, I did all you mentioned but none helped! is there any solution for this? could you please help!!!!

  132. Jasmine Esau - Owner and Lead Designer

    THANK YOU!!! Was driving me crazy!!

  133. Nessa Y.

    I have a Mac OS X Lion 10.7.5 (11G63) and when I click GO under Finder, the Library isn't an option for me. What do I do?

  134. Anonymous

    thank you so much!!! (from Brasil!!)

  135. Anonymous

    tnx dud

Leave a Reply

Your email address will not be published.

© 2022 Mr. Gecko's Weblog

Theme by Anders NorenUp ↑