Hi,
Trying to link specific icons to a new extension "*.perso", - I have created a set of icons I named "perso.icns" - and put it in "Textmate/Contents/Resources" - then edit "Textmate/Contents/info.plist" and add :
8<--- <dict> <key>CFBundleTypeExtensions</key> <array> <string>perso</string> </array> <key>CFBundleTypeIconFile</key> <string>perso</string> <key>CFBundleTypeName</key> <string>Plain text document</string> </dict> 8<---
But when I create a new document with the "perso" extension, it comes with a blank icon (with upper right corner folded). The set of icons I've created seems to work well when I replace an existing set (log.icns for instance) with this set.
So, which step did I miss?
Thanks,
On 15/08/2005, at 10.24, José Campos wrote:
But when I create a new document with the "perso" extension, it
comes with a blank icon (with upper right corner folded).
Try selecting the file and select Finder's Info to see what it says about the file (i.e. if it's “Plain text document”). If it's not, then Finder probably hasn't picked up on the new propertly list.
So, which step did I miss?
I still haven't pinned down the exact process to make Finder acknowledge a new info.plist -- rumors have it that you need to power down your machine, dance around it in circles while chanting.
One thing important though is that you run: “touch /Applications/ TextMate.app” in the shell (assuming TextMate is in /Applications) -- this updates the date, so Finder knows it should re-cache the info.plist the next time you open the application (so after this, you should navigate to /Applications and double click TextMate (don't use the Dock shortcut)).
A more drastic measure (which I often do myself) is to clear the LS cache, this is done (from the shell) using (remove last argument if you do not have the developer tools installed):
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ LaunchServices.framework/Support/lsregister -kill -r /System/Library/ CoreServices /Applications /Developer/Applications
In both cases you may need to logout/in or even restart for the changes to actually take effect.
Allan Odgaard allan@macromates.com wrote:
I still haven't pinned down the exact process to make Finder acknowledge a new info.plist -- rumors have it that you need to power down your machine, dance around it in circles while chanting.
Clockwise or counterclockwise? ;-)
One thing important though is that you run: "touch /Applications/ TextMate.app" in the shell [...].
Great, it works fine. Thanks a lot.
Have a nice day,
One thing important though is that you run: "touch /Applications/ TextMate.app" in the shell [...].
Great, it works fine. Thanks a lot.
YES! Finally my .doc icons have changed! I've had them tied to TextEdit for a long time with no success, a simple touch and restart made them appear as they should. This is very good to know. Icons to the people!
Andreas