Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use TextWrangler to open code files, such as .php, .ccs, .js, etc.

But it assigns the same icon to every file. How can I get the original icons back to each extension while TextWrangler is still the default app to open them?

share|improve this question

The behavior you want is what happens when using Xcode as the default application.

The behavior you want is not possible with TextWrangler for the following reason: Textwrangler does not distinguish the icons for *.php *.ccs... like Xcode. Therefore it does not store different icons for different filetypes (PHP.icns, CCS.icns...).

Instead TextWrangler only stores one icon for all filetypes: TextWranglerTextDoc.icns

This icon is located at:

  1. right-click on TextWrangler -> show package contents
  2. navigate to .../Contents/Resources/TextWranglerTextDoc.icns
share|improve this answer
thanks. So could I manipulate TextWrangler's Info.Plist to accomplish this or is that too far fetched? – Petruza Nov 29 '11 at 20:14
Yes, I've done it and it works so far: I merged the Resources folder from with the one from Then I replaced the entry Document Types in the Info.plist for TextWrangler with the ones in Xcode. I hope that's all and safe... – gentmatt Nov 29 '11 at 20:49
This doesn't work for me, sadly. – user16271 Jan 10 '12 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.