I have a file.icns that I would like to set as custom icon for a folder. How can I do it from a script/command-line? The script is executed in the postinstall phase of a package installer. The language of the script can be any of the script languages supported by the package-maker (bash,perl,applescript should be fine).
I found this (I did not test, but appears to be what you want):
|show 1 more comment|