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!
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!
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 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
kHasCustomIcon: https://developer.apple.com/documentation/coreservices/1429609-anonymous/khascustomicon?language=objc
finderInfo within FSCatalogInfo, which is used by FSGetCatalogInfo/FSSetCatalogInfo: https://developer.apple.com/documentation/coreservices/fscataloginfo/1565807-finderinfo?language=objc
https://developer.apple.com/library/archive/technotes/tn/tn1150.html