Add Folder to Finder Favorites sidebar programmatically

Hello, I am finding a way to add a folder to Finder Favorites sidebar programmatically.


I've googled a lot but still cannot find a solution, unfortunately.


FYI, I saw https://github.com/mosen/mysides/issues/14 said the `LSSharedFileList` API is deprecated on OS X 10.11.


@available(OSX, introduced: 10.5, deprecated: 10.11, message: "This functionality is no longer supported on OS X.")


Why this functionality is no longer supported on OS X,

Is there a replacement API for this one?


Another thread: https://forums.developer.apple.com/message/94614#94614

Could this help you ?


They advise to use NSDocumentController.


h ttps://markmail.org/message/2gk2tpfprpeitnzf

Did you have any luck with this? I have the exact same question.

Add Folder to Finder Favorites sidebar programmatically
 
 
Q