4

TextWrangler has always worked great, but now it's hanging everytime I open it.

I suspect one of the files it's trying to open causes a problem.

Is there a way to run it without opening any files?

Daniel Beck
  • 109,300
  • 14
  • 287
  • 334
Jason S
  • 7,503
  • 16
  • 60
  • 79

4 Answers4

7

You can press and hold the Shift key while launching TextWrangler to suppress all normal startup actions, including reopening files.

Canadian Luke
  • 24,199
  • 39
  • 117
  • 171
4

Your TextWrangler preferences are stored in ~/Library/Preferences/ in:

  • the file com.barebones.textwrangler.plist
  • the files in the directory com.barebones.textwrangler.PreferenceData

I don't know which of the files contains the open documents. Move the files/folder to your desktop and try starting it, then put them back one after another to find the source of your problem.

Daniel Beck
  • 109,300
  • 14
  • 287
  • 334
  • It looks like it was com.barebones.textwrangler.PreferenceData/Saved Application State.appstate – Jason S Jan 30 '11 at 23:18
2

mv ~/Library/TextWrangler/Saved Application State-023BCD4D-6979-5237-893B-7DE068E1516A.appstate Saved Application State-023BCD4D-6979-5237-893B-7DE068E1516A.appstate_bkp

This resolved issue for me.

Note that the state id will be different in your m/c

Satish
  • 21
  • 1
-1

Go to TextWrangler > Preferences > Application and uncheck the box that says "Reopen documents that were open last quit"enter image description here

speeds images
  • 486
  • 2
  • 3
  • 1
    Sorry, this wouldn't have worked: I couldn't do anything in TextWrangler at all -- it hung immediately upon opening. Also I want it to reopen documents that were open at last quit. – Jason S Jan 31 '11 at 15:36
  • What did work then? I was merely addressing the question asked "Is there a way to run it without opening any files?" – speeds images Feb 01 '11 at 16:12
  • Deleting the preference file responsible for restoring documents on opening worked. @Jason's problem was he couldn't open the editor because of this, so there was no way to get into its preferences dialog. – Daniel Beck Feb 02 '11 at 13:13