marksch wrote:What exactly do you mean by "icon of a project"? Do you want to change the icon of standalone, or the icon of a stack, or are you referring of an icon in the interface that I am not aware of?
The word "stack" belongs to HC terminology. The files produced by SC are named "project". So, I'm talking about the icns used by the Finder to show this file.
I'm talking about doing this by script.
The technique consists in putting an icns resource with ID -16455 into the resource fork of the project (appeared in OS 7 , I think).
But this is not sufficient. One also needs to set a flag in the file data of the Finder to tell it that this file is using another icon than the generic icon for this type of file. This is what I don't know how to do.
The Finder is setting this flag when pasting an icon into the info window of the file. Then, changing the ID -16455 resource is understood by the Finder. But I wish to do it on a project using the generic icon without having to go to the Finder and open the info window.
marksch wrote:If you are talking about standalones, you can set the icon in the standalone builder.
The SAM is using the "modern" method i.e. putting a .icns file into the Contents:Resources: folder of the bundle app. But projects are not bundle folders and thus require using the "old" technique.
Unless there is yet another technique that I don't know.
S.