Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create ICNS files from custom icons Apps
I needed to create an ICNS file from a folder that had a custom icon. I looked through the Apple Developer utilities, but I couldn't find anything that would allow me to extract the icon. In the pre OS X days, you copied the icon using the Get Info item. You can still do this is OS X, but when you paste this into Icon Composer (Developer Tools), you get a lousy little scaled icon. Bummer.

However, when you paste it into another file's Get Info window, you get a nice 128x128 icon, looking suspiciously like an ICNS. Hmmm. The old memory tweaked and I rememberd that when you copy in OS X, you get several versions of whatever you copy (e.g. formatted text will get RTF and plain text). So there must be an ICNS copy in there, but how to extract it? Enter an application I thought was useless -- Clipboard Viewer, which you'll find in /Developer » Applications » Utilities » Built Examples. Clipboard Viewer not only lets you see the clipboard content, but also the type, and it lets you save ... so ...

You copy the icon in the Get Info window, open Clipboard Viewer, select the icns clipboard entry, and then click Save Data. Give the file a name ending in .icns, and you're done. I hope this hint is helpful and not to obvious.

[robg adds: This older hint explained another way to get all versions of an icon file.]
  • Currently 3.86 / 5
  You rated: 5 / 5 (7 votes cast)

Create ICNS files from custom icons | 5 comments | Create New Account
Click here to return to the 'Create ICNS files from custom icons' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create ICNS files from custom icons
Authored by: llahsram on Mar 21, '07 08:06:59AM
There is also an excellent freeware tool for doing this: icon2icns. You just drag the folder/file onto the app and it extracts a .icns file for you.

[ Reply to This | # ]
Create ICNS files from custom icons
Authored by: Welles Goodrich on Mar 21, '07 09:29:59AM
Create ICNS files from custom icons
Authored by: RothenbergXXX on Aug 06, '07 01:28:51PM

There's a much simpler way than using Clipboard Viewer. Open Preview after copying the file's icon tray, then select File > New From Clipboard. You cannot save icns files in preview, but if you right click on the file's icon in the window's title bar and select the top folder in the menu, the file will be sitting there.

[ Reply to This | # ]
Create ICNS files from custom icons
Authored by: wprowe on Jul 08, '10 07:10:21AM

This is an excellent hint. And OS X 10.6.4 Preview now lets you save the ICNS file directly once you create new from paste buffer.

[ Reply to This | # ]
Create ICNS files from custom icons
Authored by: trix180 on Oct 31, '08 12:17:09PM
Also the a look to our free icons creator, img2icns
Im2icns - fast icons creator

[ Reply to This | # ]