FinderSidebarEditor
FinderSidebarEditor copied to clipboard
Adding item to the sidebar with a custom icon
Hi, I was wondering, I was trying to add a item to the sidebar but using a custom icon, and passing it as the forth parameter in LSSharedFileListInsertItemURL
. However I'm quite new on PyObjC and cannot fully understand how the translation would be.
This is how it is being done in Objective-C: https://stackoverflow.com/questions/12309830/lssharedfilelistinsertitemurl-cant-assign-icon-to-finder-sidebar-item-in-10-7-a
Would you mind setting up a quick example on how this could translate into Python? Then I could do a quick PR on how to add it as a optional parameter into the add
method
I'm afraid that I really don't know how that would translate to Python as I'm not familiar with Objective-C. However if you manage to implement it, feel free to create a PR in this fork so that I can add it to the PyPi library. It could also potentially be a FR and see if someone is familiar enough with these libraries to actually implement it.
I was giving it a second thought and actually recall attempting to add an icon with PyObjC but I gave up. If you can do it please create a PR on the PyPi fork and I will review it.