hayne
04-05-2006, 02:09 PM
You could probably do this via the 'Rez' tool that comes with Apple's Xcode Tools. You'd need to know how to get the icon into a resource description file, but maybe 'DeRez' would help in figuring that out.
And have a look at Apple's developer documentation - there is probably something there about how to set a custom icon
Otherwise, you could probably do it via AppleScript "GUI scripting" (see Apple's site for info on this) and the File / Get Info window.
See this old thread for a shell script/AppleScript that opens this window:
http://forums.macosxhints.com/showthread.php?t=10149
And have a look at Apple's developer documentation - there is probably something there about how to set a custom icon
Otherwise, you could probably do it via AppleScript "GUI scripting" (see Apple's site for info on this) and the File / Get Info window.
See this old thread for a shell script/AppleScript that opens this window:
http://forums.macosxhints.com/showthread.php?t=10149
