1 Reply
      Latest reply on Apr 24, 2019 3:16 AM by eskimo
      Crudgle Level 1 Level 1 (0 points)

        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 ?

         

        Thanks.

         

        Garry

        • Re: AppleScript - Code signing removes custom icons
          eskimo Apple Staff Apple Staff (11,265 points)

          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"