Makeicns -in myfile.jpg -32 otherfile.png -out outfile.icnsĬreates outfile.icns with sizes 512, 256, 128, and 16 containing dataįrom myfile.jpg and with size 32 containing data from otherfile.png. Sips -z $SIZE $SIZE $ORIGICON -out $ICONDIR/icon_$Ĭreates image.icns with only a 512x512 and a 32x32 variant. An alias file called Desktop (Mac OS 9) is placed on the Desktop on Macs that ship with Mac OS X and Mac OS 9 installed on the same volume.This alias is of value because the Mac OS 9 and Mac OS X Desktops are entirely independent. 'Desktop (Mac OS 9)' file is a symbolic link. export PROJECT=MyprojectĮxport ICONDIR=$PROJECT.app/Contents/Resources/$PROJECT.iconset Figure 6.30 XRays option to create symbolic links. You only need to touch the first three lines. Right-click on the mapped network drive on the Mac OS desktop b. This allows you to reconnect to the share with just a click. icns file.įor this script to run, you need your original icon file to be a png, and you have your bundle in more or less working order. A great additional step for either method is to create an alias of the mapped network drive.
It resizes and copies them to a icon set, and uses the Mac OS's 'iconutil' tool to join them into a. It takes the original png file, which I expect to be as big as the maximum size, if not bigger, to make sure they are rendered at maximum quality. I made a small script that takes a big image and resizes it to all expected icon sizes for Mac OS, including the double ones for retina displays.