My AppleScript applet has a custom icon file in the bundle (applet.icns). That file is the source of the application icon shown in windows and dialogs.
When I code sign the applet using Script Editor the custom icon file is replaced by a vanilla AppleScript applet icon file. I can't fix that after code signing (obvious: changes after code signing are sensed and macOS will not run it).
Is there a standard way of preventing the code signing process in Script Editor from removing custom icons ?
This definitely seems to be a problem with the Script Editor export process. If you look at
applet.icns in the signed app, it’s the default icon not the custom icon.
One way to get around this would be to sign the app manually. I just posted some info on how to do that as part of my response on this thread.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"