# Keeping a notebook in the toolbar File list

I have a notebook called "Useful Stuff" in which I put things I keep forgetting and for storing bits of useful code. I would like to keep this notebook in the list of notebooks that appear when you click on File in the top toolbar. I think this was possible in the past. How do I do this? At the moment it gets pushed off the bottom of the list, and lost, when I open more notebooks.

Also, I like a long list of Recently Opened Files (I keep the last 30). I have set this in the past but now can't find where you set this option. (I need to put how you set it in the "Useful Stuff" notebook!)

This post on managing Recently Opened Files is also relevant.

I find looking round the Global Preferences, where I assume this is set, difficult.

Windows Version.

Thanks

• @Kuba OK but thats a complicated way with no documentation. I am sure you could do this by setting preferences in the past. Do you recall that? – Hugh Apr 28 '17 at 11:56
• @Hugh If there was one, it has long since been removed. Since you are on Windows though, you can just pin in item in the jumplist from the task bar. – ihojnicki Apr 28 '17 at 17:03
• @ihojnick A good idea to think about. However I was after a Mathematica solution. Thanks – Hugh Apr 28 '17 at 17:17
• @kuba It's a Bank Holiday (public holiday) here today. I have not forgotten you and will look at your ideas tomorrow. – Hugh May 1 '17 at 20:39
• @Hugh right, here too. I should rest more often :) – Kuba May 1 '17 at 20:42

Cannot find BaseDirectory or UserBaseDirectory in Mac OS El Capitan

Do the same and add wherever you want:

MenuItem[
"file label"
, FrontEndExecute[FrontEndNotebookOpen["path/to/file.nb"]]
]


There is also a limited and undocumented programming way:

• @Hugh the point in using $UserBaseDirectory is that you can always delete those files as by default resources from $InstallationDirectory are used. E.g. mathematica.stackexchange.com/a/140314/5478 – Kuba May 2 '17 at 11:07
• @Hugh there's also the option laid out here which you can make permanent by using SetOptions[$FrontEnd,...] if you don't want to use $UserBaseDirectory either (it doesn't index automatically on Mac, for instance, so it's more tedious to work with). And I have a huge block of code there that lets you do relatively more automatic editing. – b3m2a1 May 30 '17 at 0:36
• @MB1965 I have just been looking around my MenuSetup.tr`. Thank you for identifying this. There is a lot there. I will see if I can sort out what I need. A bit of guidance on working with all this information would be helpful but I will try and get there on my own. – Hugh May 30 '17 at 8:37