Replace Macos App Icon

Mac OS X is notorious for being beautiful. Every vertical and horizontal line is just perfect... until you have that one application's icon which sticks out like a sore thumb. Obviously everyone has different aesthetic preferences, and this is not meant to hurt anyone's feelings.

  • In the Terminal type reboot and hit ⏎ Return/Enter. After rebooting to the standard macOS and logging on to a user with admin privileges, open Terminal in the folder /Applications/Utilities/. In the Terminal type sudo mount -rw / and hit ⏎ Return/Enter to execute the command. Now modify Dock's Finder icons: ( /System/Library/CoreServices/Dock.
  • You can also change the icon just as you would normally for any other folder or file in Mac OS X: Copy the image you want to use as your icon. Ideally it should be 512x512 already. Choose Get Info on the file/folder/app in Finder; Click on the Icon and you'll notice a blue outline on the icon - now press Command-V or choose Paste from the Edit menu.
  • Changing Mac OS X Application Icons Programmatically OSX, Automation, Life Hacks Posted on September 15, 2016. Mac OS X is notorious for being beautiful. Every vertical and horizontal line is just perfect. Until you have that one application's icon which sticks out like a sore thumb.
  • How to Change App and Folder Icons in macOS Step #1. Very first thing you’ll need to do is select any image of your choice and copy it to the clipboard by double. To locate the Desktop folder, ensure you are in Finder and press Shift + Command + H. Alternatively, you may.
  • Discover how to change the icons in Mac OS X 10.10 Yosemite. We show how to change the default icons and use whatever icons you want on your Mac - whether swapping icons from one app, file.

It has always been possible to replace these icons by hand. The steps generally go like this:

  1. Find an icon you actually want (@2x too for retina)
  2. Download it, but it is probably a PNG
  3. Convert it to an .icns file
  4. Find the Application that you want to replace the icon on in Finder
  5. Open the inspector (⌘ + I)
  6. Quite literally drag (or copy-paste) the .icns onto the application icon

If you think I am joking, check Apple's own help page for changing Application icons. The downside to this approach (aside from being completely manual) is that application updates often overwrite your beautiful custom icons! Then you end up clicking around Finder to make everything pretty again. To an automation-obsessed person like myself, this is unacceptable.

To change an app icon on macOS, you can follow these steps: 1) Find your app either in Finder, or on your Desktop. Right-click on it, and then click on Get Info. 2) This will open the Get Info menu for the app you just queried: 3) Next, find the image you want to use for an app icon. Open it up with.

Macos icon sets

Replacing the Icons

Macos

In case you may be unaware, 'applications' in OS X are actually folders. Apple calls them 'packages', but seriously, they are just folders. You can cd into them:

If we take a dive into that folder, inside the Info.plist there will be an entry for CFBundleIconFile and CFBundleTypeIconFile

  • CFBundleIconFile - the icon that will show up in Finder and the Dock
  • CFBundleTypeIconFile - the icon for others files to be opened by this app (not all applications will have this file)

In Atom, the CFBundleIconFile is atom.icns, but it could be named any other file. The name refers to the name of the file in the Contents/Resources folder. Sure enough, it is there:

Great! Now we can just replace the icon using some basic unix commands. Grab the icon you want and put it somewhere safe. I personally use ~/.custom-icons, but you could use any path - just be sure to update the script below.

I get a lot of my icons off Dribbble (thanks great designers!), and I personally use this one for my Atom icon:

This will replace the icon, but you have to restart your computer for the changes to take effect... or do you?

Forcing a Reload

By default, application icons are loaded into the cache at boot time. There are a few techniques for forcing a reload of that icon cache on the Internet, but there is actually a much easier approach - simply touch the app:

I actually have no clue why this works, but the computer scientist in me says that something about changing the lstime of the file causes the cache to be invalidated. Now you just need to restart Finder and the Dock to pick up the changes:

Now we can easily script the whole thing! Here is my complete script:

One thing to note: if the application corresponding to the icon you are replacing is currently running, you will need to quit that application before running the script. My script used to Force-Quit the application, but that turned out to be a bad idea for an editor.

Macos App Download

Replace Macos App Icon Windows 10

Conclusion

Macos File Icon

Hopefully this post helps you automate icon replacements, and, again, this is in no way intended to make the Atom developers feel bad (or any of the other 15 application icons I replace). When new app updates happen, just rerun the script and your icons will be great again!