3

I'm not sure whether this is actually possible or not but I'm trying to add a newly created folder into the favorites section of the Finder window.

If it is possible how can I achieve this? I have googled for this but couldn't find anything concrete. Any help will be greatly appreciated.

4

The information about what appears in the Favorites section of the finder windows is kept in the configuration file:

/home/<your_user_name_here>/Library/Preferences/com.apple.sidebarlists.plist

there is an explanation of the file's contents here:
https://georgegarside.com/blog/macos/finder-sidebar-preferences-location/

and macOS includes a tool to manipulate the plists from terminal:
/usr/libexec/PlistBuddy

You can find an introduction to the tool here:
http://fgimian.github.io/blog/2015/06/27/a-simple-plistbuddy-tutorial/

and a sample discussion about using it here:
https://groups.google.com/forum/#!topic/macenterprise/Ks-zHlY3h5I

However, if you don't want to figure out everything by yourself you can use an utility published on github that manages the sidebar contents from the terminal line:

https://github.com/mosen/mysides

OTH

  • 2
    Unfortunately it seems the file com.apple.sidebarlists.plist is no longer present in MacOS High Sierra. – user91203 Jul 15 '18 at 14:25
-1

Theres a binary file at ~/Library/Preferences/com.apple.finder.plist

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • 2
    Welcome to Ask Different! Could you please explain how this helps in solving the OP's problem? – Glorfindel Nov 20 '18 at 20:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .