Open all icons on your Mac

November 6th, 2009 vira Posted in fun, mac No Comments »

Just for fun :) I decided to discover if it possible to open all icons (.icns files) with Preview and (as in real experiment) to measure how many resources this operation will take. To perform this I executed the following shell command:

find / -name *.icns -exec open {} \;

It is also better to change Preview preferences to make it open all files in one window (it isn’t a good idea to open thousands of windows). And here is the results for my system

MacBookPro5,4/Intel Core 2 Duo 2,53 GHz/4 GB DDR3/MacOS X 10.6.1

Preview resources consumption

So, it’s taken about 45 minutes and 850 MB of memory to found 4144 icons on my system… It’s possible to work with all this icons in Preview, search in them and so on. But generating of PDF file from all these icons failed (in fact I cancelled it when Preview had “ate” 2 GB of memory :) ). Here is screenshot of all this beauty.

All Icons in Preview

This could be useful for designers/programmers for researching/”stealing” icons.

E.g. I was surprised how the icon for “downloading in progress” file is drawn.

screen-shot-2009-11-06-at-00.22.17.png