Replacement for Launch Services API


Jon Gotow
 

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#35356972

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.

- Jon

On May 31, 2018, at 5:58 AM, Sak Wathanasin <sw@...> wrote:

Is there a replacement for LSSharedFileListCreate, LSSharedFileListInsertItemURL &c that have been
deprecated in
the latest SDKs? Or is there another way to add something to the Finder's sidebar or to login items?
AppleScript?


Sak Wathanasin
 

Is there a replacement for LSSharedFileListCreate, LSSharedFileListInsertItemURL &c that have been
deprecated in
the latest SDKs? Or is there another way to add something to the Finder's sidebar or to login items?
AppleScript?

Thanks
--
Sak Wathanasin
Network Analysis Limited http://www.network-analysis.ltd.uk