Figured out how to apply any arbitrary SF Symbol to a folder in Tahoe.

xattr -w 'com.apple.icon.folder#S' '{"sym":"camera.viewfinder"}' some/folder/here

It also works with private symbol names!

also because emoji labels are just handled as strings, you can put anything in the emoji config thing.
@samhenrigold I believe @dlx had also open sourced a similar tool
@czakka @dlx i contributed to it, actually! haha. i think it holds the record for fastest “Time to Sherlock”

@samhenrigold

While I was sharing your hack, someone showed me how to go open info on a folder, then drag a svg onto the info wondow, and it becomes the default image for that folder....

Then I played around a little, and found that I could add, throuth edit and insert on the title field in the info dialog, and I can add an emoji rught there..... So, thanks!

@samhenrigold this seems far too complicated than it ought to be. then again, in windows you need icons in a ICO or DLL (or EXE, or anything else that can hold icons in that format really) to use them as custom icons for folders or shortcuts
Furbland's Very Cool Mastodon™, in macOS you could also set a custom .icns for a folder or a disk since about forever
@samhenrigold Technically this also requires setting the folder as having a custom icon, which the xattr alone is not enough.
@mikeymikey maybe try this mdls flag? that’s the only other metadata i observed that changes when you set an icon

@samhenrigold Custom icon is a Carbon-era filesystem flag. GetFileInfo and SetFile (if you have developer tools installed) will let you toggle it on a stock macOS install directly if you don't go the route of pasting in a custom icon / using APIs to configure a file's icon

I would not be surprised it maps to FinderInfo since that's the name of the struct member

@samhenrigold oooooh, great find. Definitely making a note to check that out! https://github.com/lgarron/folderify/issues/80#issuecomment-3054417328
Add option to use an SF Symbol as input · Issue #80 · lgarron/folderify

I am using this project to get the icons in the Finder sidebar styled. While it is possible to use completely custom icons for this, the recommended way is to use Apple's built-in SF Symbols. I am ...

GitHub
@samhenrigold In case anyone is interested, you inspired me to make a quick little utility app to make this customization easier: https://github.com/archagon/grimace
GitHub - archagon/grimace: Just a fun little tool that lets you change macOS Tahoe folder icons to arbitrary system symbols or text.

Just a fun little tool that lets you change macOS Tahoe folder icons to arbitrary system symbols or text. - archagon/grimace

GitHub
@archagon objc in the year of our lord 2025?!
@samhenrigold Wrangling UnsafePointer<CChar> in Swift is not how I wanted to spend my weekend!