Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

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 Xcode.app with the one from Textwrangler.app. 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

 
discard

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.