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.

3 Answers 3


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


there is an explanation of the file's contents here:

and macOS includes a tool to manipulate the plists from terminal:

You can find an introduction to the tool here:

and a sample discussion about using it here:

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:



  • 10
    Unfortunately it seems the file com.apple.sidebarlists.plist is no longer present in MacOS High Sierra.
    – user91203
    Jul 15, 2018 at 14:25

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

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

Navigate to the parent of your newly created folder (cd ..) and run open . Your newly created folder should appear in Finder. Select it, press File -> Add to sidebar. Your folder is now present on the Favourites column

  • 6
    How does this qualify as a Terminal-based solution?
    – nohillside
    Oct 13, 2019 at 10:14
  • This was a real straightforward solution that took me less than a minute. Less of a hassle than installing anything or using a guide. Nov 4, 2021 at 17:26
  • 3
    Yeah but you can't automate it in a dotfile, which is a major reason command line users want a plaintext solution Apr 21, 2022 at 16:36
  • Does not work for files that cannot be viewed in the Finder, such as ~/.Trash, which remains hidden in the Finder even when Finder is displaying hidden files.
    – dinosaur
    Feb 2, 2023 at 19:59

You must log in to answer this question.

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