MacOS – Specify AppleScript bundle icon

applescriptmacos

I'm trying to assign an icon to my AppleScript bundle, but without success.

Steps:

  • Added the icon (applet.icns) to the bundle's /Contents/Resources directory
  • Modified the bundle's /Contents/Info.plist:

    <key>CFBundleIconFile</key>
    <string>applet.icns</string>
    

** edit **

I ran the 'Set Bundle Icon File' script in the Applet Bundle Tools. It did not change the situation.

What am I missing?

Best Answer

Disclaimer: This may not work for an AppleScript bundle.

First I open the icon in preview.app.

I select the full picture and type Command-C

The way I typically change icons for files is that I select the file and type Command-I

In the info window that opens, I then select the current icon in the upper left.

Type Command-V and the icon (theoretically) will change to the picture in the clipboard