Live data from Hacker News

Hardcoded Folder Icons in macOS

weblog.antranigv.am

1–10 of 130 posts

Re: Hardcoded Folder Icons in macOS

#2
If you want to use any of these,

1) Navigate in the Finder to /System/Library/CoreServices/

2) Open "CoreTypes.bundle" by right-clicking it and selecting "Sow Package Contents" from the centext menu, then open the "Contents" folder, then "Resources"

3) There they are! Find a suitable icon (preview either with "Get Info" or by double-clicking, which will open them in Preview)

4) In a second window, navigate to the folder you want to decorate.

5) Select it and open its file info with "Get Info" (either using Command + I, the context menu, or "Get Info" in the "File" menu)

6) Drag and drop the .icns file onto the little icon at the top left. (Not onto the big preview.) You have now successfully copied the icns resources.

To revert to the default icon, just select the small icon in the file info and hit delete.

Re: Hardcoded Folder Icons in macOS

#3
post #2

If you want to use any of these, 1) Navigate in the Finder to /System/Library/CoreServices/ 2) Open "CoreTypes.bundle" by right-clicking it and selecting "Sow Package Contents" from the centext menu, then open the "Contents" folder, then "Resources" 3) There they are! Find a suitable icon (preview either with "Get Info" or by double-clicking, which will open them in Preview) 4) In a second window, navigate to the fol…

You can also press Shift + Command + G and paste /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ to go there directly.

Unfortunately, even if you set a custom icon for a folder, it'll still show as default icon in the sidebar. I wanted to give my ~/dev sidebar entry the developer icon, but sadly it seems to be hardcoded ~/Developer indeed.

Re: Hardcoded Folder Icons in macOS

#5

> If you’re new to macOS, this is a kindly reminder that macOS ships with Apache2. Oh, I didn't realize that. Seems like a strange choice?

Mac OS X used to ship with a wide variety of open source software such as Samba or CUPS. Most of that stuff is removed nowadays but some is still present. Many networking services can be easily activated using the settings app.

Re: Hardcoded Folder Icons in macOS

#6

> If you’re new to macOS, this is a kindly reminder that macOS ships with Apache2. Oh, I didn't realize that. Seems like a strange choice?

Until Mojave it came with PHP. It's probably a relic of a time when installing runtimes/system software wasn't as easy.

Re: Hardcoded Folder Icons in macOS

#7
post #6

> If you’re new to macOS, this is a kindly reminder that macOS ships with Apache2. Oh, I didn't realize that. Seems like a strange choice?

Until Mojave it came with PHP. It's probably a relic of a time when installing runtimes/system software wasn't as easy.

It also used to come with twisted preinstalled back when it still shipped with python2.

Re: Hardcoded Folder Icons in macOS

#8

> If you’re new to macOS, this is a kindly reminder that macOS ships with Apache2. Oh, I didn't realize that. Seems like a strange choice?

It's been in macOS for quite some time. Mostly dormant now but at one point it was what powered the Web Sharing option in the Sharing prefpane. It was also used in OS X Server (both the OS X versions designed for Xserve and the later "app" version) before that was largely whittled away.

I can't exactly find if it came with OS X since the beginning (which would predate nginx and friends), but it probably was a much more likely choice back in the day, and I guess that's why it's still included. Wouldn't be surprised to see it quietly disappear from later macOS releases, though.

Re: Hardcoded Folder Icons in macOS

#9
post #7
post #6

Earlier quoted context omitted.

Until Mojave it came with PHP. It's probably a relic of a time when installing runtimes/system software wasn't as easy.

It also used to come with twisted preinstalled back when it still shipped with python2.

And there was a period where it came with rails.

Re: Hardcoded Folder Icons in macOS

#10
post #8

> If you’re new to macOS, this is a kindly reminder that macOS ships with Apache2. Oh, I didn't realize that. Seems like a strange choice?

It's been in macOS for quite some time. Mostly dormant now but at one point it was what powered the Web Sharing option in the Sharing prefpane. It was also used in OS X Server (both the OS X versions designed for Xserve and the later "app" version) before that was largely whittled away. I can't exactly find if it came with OS X since the beginning (which would predate nginx and friends), but it probably was a much mo…

"quite some time", is an understatement. The Apache HTTP Server was included as part of Mac OS X starting with version 10.0 (Cheetah), which was released on March 24, 2001. Prior to that, users of Mac OS X would have to manually install and configure Apache HTTP Server, if they desired to run a web server on their Mac.
Post reply on HN