Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize Applescript app icon

I have created my AppleScript, tested it, saved it as an .app and it works.

Now, how do I set a custom icon for it?

I have done a bit of googling and tried a few different things but cannot get it to work. The app is mainly for me and maybe some people I know to make workflows easier so having a nice little icon makes a huge difference. Can anyone help with this please?

like image 666
Adam Mann Pro Avatar asked Mar 15 '17 16:03

Adam Mann Pro


2 Answers

This is how I do it:

  1. In Finder, select your icon file.
  2. Get Info (CMD-I) on the file.
  3. Click the icon in the top left corner of the Get Info window.
  4. Copy it via CMD-C.
  5. Now Get Info on your AppleScript file.
  6. Click the icon in the top left corner of the Get Info window.
  7. Paste the icon using CMD-V.

The AppleScript icon should be replaced by the icon copied from the icon file.

like image 118
pipwerks Avatar answered Sep 28 '22 07:09

pipwerks


  • Basically you need an .icns icon file.
  • Open your application with right-click > Show Package Contents
  • Navigate to Contents > Resources
  • Delete applet.icns
  • Drag the custom icon file into the Resources folder
  • Rename the icon file in Resources to applet.icns
  • To update the icon appearance open and re-save the applet in Script Editor.
like image 38
vadian Avatar answered Sep 28 '22 07:09

vadian