Re: Replacement for Launch Services API
You can use the Service Management framework to add items to open at login (though they don't appear in System Preferences > Users & Groups > Login Items, which is a pet peeve of mine). See this answer on SO: https://stackoverflow.com/questions/35339277/make-swift-cocoa-app-launch-on-startup-on-os-x-10-11/35356972#35356972toggle quoted message Show quoted text
I don't know of an alternate way to add items to the Finder's sidebar, though.
I'm still using LSSharedFileList even though it's deprecated.
On May 31, 2018, at 5:58 AM, Sak Wathanasin <sw@...> wrote: