5
$\begingroup$

I worked on a notebook a few weeks ago and now I can't find after looking through the most likely directories. The recent list only has 6 items in it, none of them the notebook in question. Is there a way to find ALL notebooks I have created or opened?

$\endgroup$
10
  • 3
    $\begingroup$ You may use your OS commands ... find, search, whatever $\endgroup$ Nov 11, 2013 at 19:28
  • $\begingroup$ Yes, but then the wolfram Force would not be with me. $\endgroup$ Nov 11, 2013 at 19:39
  • 1
    $\begingroup$ @Tyler Durden: Are you sure Edward Norton's character didn't put it somewhere else? $\endgroup$
    – user484
    Nov 11, 2013 at 19:40
  • 2
    $\begingroup$ Sometimes I wake up and things are missing. $\endgroup$ Nov 11, 2013 at 19:41
  • 1
    $\begingroup$ I have to agree with belisarius and Sjoerd, use the OS search facility. E.g. on Windows 7 you just hit the windows button and type ext:.nb date:>25/10/2013 to instantly find all notebooks modified after 25th October. $\endgroup$ Nov 11, 2013 at 19:55

2 Answers 2

6
$\begingroup$

There is a way to tell Mathematica to remember, in its File->Open list, long list of files you have opened and not the default of 8.

Mathematica graphics

The above is from options. Simply change the value from 8 to say 100, and now you will have all those files remembered. I used to have the same problem as you until I found this option.

$\endgroup$
8
$\begingroup$

The following function finds a notebook (a .nb file) with a given maximum age (in days) in a given directory or its subdirectories:

notebookSearch[dir_String, age_?NumericQ] := 
   Select[
      FileNames["*.nb", {dir}, Infinity], 
      First[DateDifference[FileDate[#], DateList[], "Day"]] <= age &
   ]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.