1

i like to make my own custom folder icons in macOS monterey

There are projects like https://github.com/shariati/OS-Folder-Icons that provide custom folder icons but they don't provide it in the monterey version.

I like to know where to get hold of this file and how to edit it for my own usage?

I also found this website but it downloads as .icns and according to this, icns is no longer recommended as of macOS 11 Big Sur.

enter image description here

1 Answer 1

2

How to get the Icon File:


You should be able to find the generic folder icon here: /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericFolderIcon.icns

If not, then it is in the Assets.car file, found at the same path above.

Note: Getting in and doing anything with .car files will take a little more effort. See this article here for a good discussion: Stack Overflow - Analysing Assets.car file in iOS

Another method to get the generic folder icon is as follows:

(Reference this Apple Support article: Change icons for files and folders

  1. Using Finder, locate a folder with the generic icon
  2. Get Info on the folder: select folder and type ⌘+I or choose File --> Get Info from the menu bar
  3. Select the folder icon in the upper right and copy it to the clipboard - ⌘+C
  4. Open the Preview app
  5. Choose File --> New from clipboard (or ⌘+N ) you now have all the icon images for a generic folder loaded in preview
  6. Save the icon file: File --> Save or ⌘+S
  7. You will be prompted for where and what format to save the file. See that the default is ICNS Save As dialog box

Now you have an ICNS file to work with.

How to Edit the icon file


The link you referenced in your question states "Don’t provide app icons in ICNS or JPEG format", for various reasons. The article is also concerned with Application icons, with the recommendation to be creation of "asset catalogs". You will need to familiarize yourself with Xcode for this. ICNS is still valid for folder icons, per your original requirement.

To make a custom ICNS file based on the generic folder icons, without purpose-built applications, follow these steps:

Note: This involves the command line via Terminal and use of the iconutil command.

  1. Convert the ICNS file to an ICONSET
  2. Edit the PNG files to your liking
  3. Convert the ICONSET back to ICNS

Example:

change directory to wherever you saved the generic folder icns file
list folder contents using ls

cd /path/to/working/directory

ls

Generic_Folder_Icons.icns

convert the ICNS file to an ICONSET. ICONSETs are directories with PNG files that represent the different icon versions

iconutil -c iconset Generic_Folder_Icons.icns

ls

Generic_Folder_Icons.icns
Generic_Folder_Icons.iconset

rename the iconset to something new

mv Generic_Folder_Icons.iconset Custom_Folder_Icons.iconset

ls

Custom_Folder_Icons.iconset
Generic_Folder_Icons.icns

list the contents of the new iconset directory

ls ./Custom_Folder_Icons.iconset

icon_128x128@2x.png
icon_16x16@2x.png
icon_256x256@2x.png
icon_32x32@2x.png
icon_512x512@2x.png

Note: you can now use your graphics-editor-of-choice to modify the .png files to your liking.

After edits, convert the ICONSET back to ICNS.
Note: This is why we changed the name of the iconset previously, lest we overwrite the original generic folder icns file

iconutil -c icns Custom_Folder_Icons.iconset

ls

Custom_Folder_Icons.icns
Custom_Folder_Icons.iconset
Generic_Folder_Icons.icns

done.

1
  • 2
    GenericFolderIcon.icns is not the default folder icon for macOS Monterey. Note the differences: imgur.com/a/cuYr4RA
    – Peter W.
    Jan 31 at 8:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .