Open niklasbogensperger opened 1 year ago
I think this is a good candidate for Unix-style composability. Presumably you can write a Swift script to output a .png
, which you can then send to folderify
.
I poked at this a bit, but I haven't figure out how to write the image to disk from Swift.
If it helps, I found this project on github which does something similar as folderify: https://github.com/kfreitag1/FancyFolders They are using Python, but the relevant function where they extract the SF Symbol is here: https://github.com/kfreitag1/FancyFolders/blob/master/fancyfolders/imagetransformations.py#L160 I don't know much about ~Swift~ rust but according to some googling emulating the same functionality with ~CoreImage~ image-rs should be possible.
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 using several of these self-made Finder Sync Extensions to theme the sidebar and now want the folder icons in the main window to match as well. While I can and will manually copy out the respective SF Symbols and run folderify, would it be possible to offer something like a
--sfsymbol <identifier>
option as an alternative to specifying an input file? From what I can see, this is what Apple themselves use to create the custom folder icons.