Closed samj closed 1 month ago
I don't think that will do what you want. You can certainly run:
iconutil --convert iconset --output /tmp/app.iconset /Applications/Obsidian.app/Contents/Resources/icon.icns
folderify --reveal /tmp/app.iconset/icon_512x512@2x.png
But most app icons are placed in a border, and would all produce folder icons looking like this:
folderify
is more on the Unix philosophy side of things: it takes a mask and does the tricky macOS-specific parts of creating and setting a folder icon. There is no objective best way to take an arbitrary app icon and extract a mask from it, although you might have some luck using posterization with ImageMagick or an AI tool. But folderify
isn't really needed for that part.
Glad you found something that worked for you! Closing this issue for now.
I'd like to be able to import icons from the application that "owns" the folder, like Obsidian:
folderify /Applications/Obsidian.app ~/Obsidian
Failing that, importing the application's
icon.icns
file (which I guess you can get from its plist):folderify '/Applications/Obsidian.app/Contents/Resources/icon.icns' ~/Obsidian
This is what I get when I try this currently: