For my users I was looking for an easy way to configure the favorite network shares in Finder – Go – Connect to Server.
I found out that those favorites are located in “~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.FavoriteServers.sfl”
There is also the sfl file for the finder sidebar items “com.apple.LSSharedFileList.FavoriteItems.sfl”
Now how do we configure a favorite item in the sidebar or a favorite network share?
In /usr/bin/ is a command line tool named “sfltool”
For adding a network share:
/usr/bin/sfltool add-item -n "Displayname" com.apple.LSSharedFileList.FavoriteServers "Serverpath"
For adding a Sidebar Item (path to a local folder):
/usr/bin/sfltool add-item com.apple.LSSharedFileList.FavoriteItems file:///Users/$USER/Desktop/