Fixed: OpenOffice “Restore Windows” Popup

I tried starting Open Office on my Mac running 10.7.2, and I got this annoying popup window that won’t go away. I click on “Don’t Restore Windows” or “Restore Windows”, and it just stays popped up.

OpenOffice Restore Windows Popup Image

I found a solution though.

1) Force Quit your Open Office Application (Right-click holding the option key).

2) Open up Terminal and at the command prompt type to removeย the Saved Application State information.

rm -rf "~/Library/Saved Application State/org.openoffice.script.savedState"

3) Start up OpenOffice and the popup should no longer show.

Hope that helps


139 Responses

  1. Cheryl Peterson says:

    Thank You – worked like a charm!!

  2. marty says:

    This solution ended up resolving my same issue. Thanks

  3. Sam says:

    Hallelujah, thank you!! Been bugging me for WEEKS.

  4. Erich says:

    This still isn’t woking for me. Every time I go to the terminal and type that code in, nothing happens.

    • The terminal command just removes the file. Once you hit enter, nothing will happen in Terminal, but the file will be removed. The “rm” part of the command means remove.

      Did the application start without the prompt?

      • Ben says:

        I did everything it said, still came up with the window

      • Sarah says:

        I “forced quit” OpenOffice (right-click holding the option key) but the application OpenOffice was still open, even thought the “Restore Windows” box disappeared. I tried putting the code into the Terminal anyway and hit “enter” but it didn’t work (I guess because OpenOffice never quit). So I don’t think the file was ever removed. And I can’t restart the application because it never closed. What should I do??

  5. Well i have tried…..

    but the window still pops up….

  6. This did not work for me until I escaped the spaces in the file path. I used:
    "rm -rf ~/Library/Saved\ Application\ State/org.openoffice.script.savedState"

  7. Anna Z. says:

    Hooray! Thanks so much for this. The method you describe in this post didn’t actually work for me, but the manual removal that you describe on the forum worked perfectly. Such a relief!

  8. James says:

    Thanks Tony – worked for me too by escaping the spaces (thanks Patrick too).

  9. Desi says:

    Worked like a charm mate. Nice one!

  10. Thank You so much – this error was getting driving me nuts…

  11. Tamasin says:

    Thanks so much, this has been driving me crazy!! & i was one of the dummies putting in the quotation marks so thank you for pointing that out too lol!

  12. Nicole says:

    Worked just fine with tab completion ๐Ÿ™‚

    Thank you for saving me hours of unfun!!!

  13. Dan says:


  14. Frank says:

    Worked like a charm. Thanks!

  15. Caro says:

    I have tried the two different versions of this script in terminal and I am still getting the pop up window (restore windows) in open office. Is there anything else I can do. I have reinstalled the application and it still happens ๐Ÿ™

  16. Caro says:

    GRMrGecko wrote:
    I have found a solution to this issue. I do not know why this has be marked as “[Solved]” while it doesn’t provide the answer as to how to fix it.

    Here is how you fix it.
    I found something that worked for me on another forum:
    In the Finder, make a new window. Go into the Go menu and hold down option to reveal the Library folder and select that folder in the menu. Find the folder “Saved Application State” in the Library and delete the folder “org.libreoffice.script.savedState” (Should be similar for OpenOffice), now open LibreOffice and your problem will be fixed.

  17. Cory Wagner says:

    This did not work for me, I can’t force quit OOo-dev. After typing that code into Terminal, it does nothing.

  18. mary says:

    Open up Terminal and at the command prompt type to remove the Saved Application State information.

    rm -rf โ€œ~/Library/Saved Application State/org.openoffice.script.savedStateโ€
    I don get it this part, i opened terminal and there was just my profile name that I’ve been logged in with. scan someone explain this part for me

    • That’s a command prompt. You need to type (or copy and paste) that line of code in the Terminal command prompt. Then, once it’s there (you should see that line of text after you type it), hit enter. That will run the command.

      After that, you are done.

      Make sure you quit out of OpenOffice before you do it, though.

  19. asim says:

    GRMrGecko has it right….go to the GO menu and delete the file in the Libary as it is stated above. It works!!

  20. Angel says:

    Thanks! I was troubled by this issue, and googled for a solution. This really helped me!

  21. B says:

    Open terminal? What does that even mean?

    • andrew says:

      Thanks for expressing what other newbies experience when instructions are given that assume you know your way around a Mac. I’m learning computers and a new Mac, too.

  22. Daish says:

    Great. Thanks for the help… For those that it isnt working for, i used your method, but instead of using the terminal, i just went to my user folder, tuerned on invisible files, went to Library/Saved Application State/ then found most recent 8 being open office and deleted the folder…. problem solved.

    maybe easier for some people as terminal is a bit scary. BMany thanks as this was really buggin me

  23. Steve says:

    I have tried both the posted line to type by Tony and the escaped line that someone else posted and neither of them worked.

    I hunted for that path and was unable to find it. I don’t know if “Saved Application State” is a hidden folder, but it’s not in the Library folder.

    Anyone have any other ideas?


  24. Simon says:

    Thanks Tony, I was being driven to distraction by this error!

  25. Kat says:

    nothing seems to be helping the message keeps popping up no matter what i do.

  26. Manish says:

    Thanks, that helped!

  27. Em says:

    THANK YOU!!! That had been bugging me for DAYS!

    I can now use OpenOffice without complaint ๐Ÿ˜€

  28. Jess says:


  29. Andy says:

    The sound of singing angels – THANK YOU

  30. abi says:

    Hooray! Thanks!!

  31. Brenna says:

    Thank you so much! Didn’t even know I had a Library folder; it disappeared after a second of showing up on my screen every time I searched for it.

  32. Ben says:

    Fast and easy. Thanks

  33. CAS says:

    Thanks for the suggestions; however, none worked for me. I had to uninstall OO and go back to MS Office. ๐Ÿ™

    • CAS says:

      Ok, apparently I kept mistyping something, because I tried one more time and it miraculously worked. So I guess my thanks are in order too!

  34. Jasmin says:

    Omg thank you so much!!

  35. Hima says:

    Thank you. Thank you.

  36. Mohannad says:

    rm -rf ~/Library/Saved\ Application\ State/org.openoffice.script.savedState

    this works with me

  37. Alison says:

    THANK YOU!!!

  38. Crystal says:

    yes! this command worked for me. thanks so much!!!

  39. Beth says:

    Thanks! It worked perfectly.

  40. PK says:

    <3 Thank you so much. That problem was driving me insane.

  41. Rebecca says:

    In Library- still not seeing a “Saved State” folder. Help?

  42. Damian Hutchinson says:

    You are all such stars…couldn’t open open office got that ******y message…eventually (Yep I included quotation marks!!!) beat the thing with your help..Muchos thanks!

  43. Seiaeka says:

    This not only worked for my OpenOffice issue, but resolved a 3 month old problem with QuickTimePlayer as well.

  44. Arjuna says:

    Thank you very much.

  45. Hesher says:

    Is there a way to solve it for mac?

  46. Hesher says:

    I’ve tried this several times, nothing changed and it continues to pop up. Is there something I’m doing wrong?

  47. Lydia says:

    THANK YOU!!! It took me forever to figure out how to “open the Terminal” and what the “command prompt” was, but this worked perfectly once I figured that out. Hesher: These are instructions for a Mac.

  48. christiane says:

    if you can’t find the folder in the library, use the “terminal” solution from above.
    go to
    Applications–> Untilities–> terminal (double click)
    then copy this:
    rm -rf ~/Library/Saved\ Application\ State/org.openoffice.script.savedState
    and paste it where the grey sign is. —> enter

    problem solved thank you thank you thank you

  49. Eric says:

    Thanks so much! This issue was really beginning to bug me!

  50. The script didn’t do the trick for me, so I used Finder to browse to the Library folder in my personal user folder and deleted the “org.openoffice.script.savedState” folder under “Saved Application State” manually. Worked like a charm!

    • Steve says:

      Can you tell me where to find the Library folder to delete “org.openoffice.sctipt.savedState” I have a MacBook Pro…don’t know where to look.

  51. Michelle says:

    worked! thanks sooooo much! this was soo annoying!

  52. Joel says:

    Is there a fix for teh same issue for Windows 7?

  53. beemichael says:

    Okay phew – I’ve been trying that line of code for last half an hour, didn’t realise you were not supposed to use the quotation marks! But thanks so much y’all for thanks and responses finally I can use my program

  54. Lucy says:

    THANK YOU! This has resolved hours of frustration. ๐Ÿ™‚

  55. Caity says:

    Ahhh thank you so much!!! It worked!

  56. fotovoltaika says:

    Thank you so much! For me worked this one:
    rm -rf ~/Library/Saved\ Application\ State/org.openoffice.script.savedState

    Just copy paste to terminal and hit enter.

    Then reopen openoffice and well done!

  57. MUGEL says:

    Thanks! Helped me a lot

  58. B Jordan says:

    This thread helped me!

  59. Thanks this really works!

  60. BenjaminB says:


  61. Alina says:


  62. Dayanne Fernandes says:

    ๐Ÿ™ I am not good with computers. where do I open up “terminal”?

  63. Priyaranjan says:

    Thanks buddy !!

    It worked for me.

  64. Zinn says:

    Thank you. This saved me some agony!!!

  65. Angie says:

    May I know how to find Terminal? I have try but just don’t work.

    • David says:

      Use Searchlight (the magnifying glass in the upper right corner of your screen (just to the right of your name) and type in Terminal. The first option it will offer will be that program

  66. Jorge says:

    It works!

  67. David says:

    Thanks, Tony! Many headaches alleviated.

  68. Jean says:

    Yesss!! Thanks that was amazing help. Angie: go to your Applications folder – Utilities and Terminal should be in there.

  69. John says:

    Worked – thanks!

  70. Edmond says:

    Thank you.

  71. Lea says:

    THANK YOU!!!

  72. OYKU says:

    Hello I’ve been dealing with the same problem but I can’t ‘force quit’ because the name does not even appear. How can I quit? When I shut down the computer it appears when I open it…

  73. Alphapenguin says:

    It also worked with OS Mavericks. Thank you!

  74. PD says:

    Thank you…it worked

  75. NOREDLACE says:

    I had trouble when typing this command into the terminal, error said no such file or drectory….

    Tried to find it in the Finder and search came up with no results.

    So if you are having those same 2 issues, this is how I got around it.

    I am running:
    MAC OSX 10.7.5
    Open Office 3.4.1

    Make sure openoffice is NOT OPEN.

    Step 1:
    In order to see the files in your finder so that you can delete them you need to show the invisible files.
    Select UTILITIES
    Select TERMINAL

    Step 2:(Show Invisible Files)
    In the terminal window you need to type the following command:

    defaults write AppleShowAllFiles YES

    Type that command exactly as it is. What that command does is make it so you can see ALL OF YOUR FILES in the finder window. Don’t worry you can turn this off at the end. But for now go to step 3.

    Step 3: (Relaunching the Finder Window)
    Click on the Apple ICON at the top left of your screen in the top navigation bar of the computer. When the list of options comes up click on FORCE QUIT
    A small window named FORCE QUIT APPLICATIONS will pop up. Look for the word FINDER inside that new window. It may be the last one listed and you may need to scroll inside that window if you have a lot of applications open. Click on the word FINDER so it is hilighted.

    CLICK THE RELAUNCH BUTTON on the bottom right of that little window.

    Step 4: (This is where you DELETE the File)
    Go to the new FINDER WINDOW
    In the left Pain click on your USER NAME (has the little house icon right before it)
    You will see a bunch of grayed out files, those grayed out files are all the files that were hidden from your view before. One of those files is your Library Folder. They are in Alphabetical order and mixed in with visible folders, so scroll down and you’ll find it.

    Click on your LIBRARY folder.
    Hold down the CONTROL key and then Click on the folder named org.openoffice.script.savedState
    a pop up will come up and you should select MOVE TO TRASH
    This deletes the file
    Empty your trash bin

    Step 5: Launch Open Office
    Open office should work great again.

    Step 6: Hide your invisible files and relaunch finder
    If you are uncomfortable seeing all these new files on your computer, don’t worry you can hide them again by going back to the TERMINAL WINDOW
    at the prompt type:

    defaults write AppleShowAllFiles NO

    Then RELAUNCH your FINDER again by doing step 3 above.

    Hope this helps somebody!

  76. Todd Pliss says:

    Amazing OO would release something with such a big bug. No matter what I do, with OX 8.5, nothing works,

Leave a Reply

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>