macosxhints.com – 10.3: Create icon previews and more in the Terminal


macosxhints.com – 10.3: Create icon previews and more in the Terminal

I’ve wanted to generate icon previews for image files from the command line for a long time, even though there are many fine applications avaliable for this task (pic2icon, Photoshop, Graphic Converter, IconDropper, and PathFinder to name but a few). However, Panther includes the “scriptable image processing system,” which makes this task trivial:
% sips –addIcon imagefile(s)
Use sips -h and sips -H for help, and see Apple’s page on the new Image Events application