I'm running Mountain Lion, and my question is how to "attach" an icon to an extension? For example, I want all .adm files has an icon like on the picture below. Unfortunately all I can is just attach an icon to proper file, not to all files that has such extension. Thus I want .adm extension has their own icon. .adm is opening in TextEdit, so please don't suggest me to open it in right app. Thank you in advance!
MacOS – Icon associated with extension
file extensionsiconmacos
Related Question
- MacOS – Clicking on dock icon makes windows for other applications disappear
- MacOS – wrong icon of Unix symbolic link in Finder
- MacOS – Is it possible to enable shift+click in icon view in the Finder
- MacOS – Yet Another Custom Sidebar Icon Question (System Info.plist Question)
- MacOS – How to get all the open TextEdit documents back
- MacOS – Change Icon/Thumbnail for File Type
- MacOS – n easy way to add, modify, or remove what files or URLs are associated with Apps
- Finder icons without thumbnail preview and a cross
Best Answer
See this detailed answer for "How to set an icon for a file type on Mac?" on superuser.com.
In this case, you need to update TextEdit's resources and plist to get it to use your custom icon for a file type it does not know about. The LaunchServices database also needs to be updated for the changes to be seen.
Here's a small snippet from that answer (bold emphasis mine):