If I go to the menu bar and press File I get a list of recently opened files.This would be useful except they are edited and mostly replaced by dots thus making choosing difficult. See the screen shot below. Is it possible to get the non abbreviated list from within mathematica and then open one of the notebooks?
I started looking at Preferences and found the "Recently opened files history length" but could not find more. I could not find this as a previous question but may not have searched exhaustively.
Thanks
Answer
This gives the recently opened files as a list of rules:
Lookup[Options@$FrontEnd, NotebooksMenu]
Just the file names:
First /@ Lookup[Options@$FrontEnd, NotebooksMenu]
FileNameJoin
instead of FrontEnd`FileName
: (only tested on windows)
FileNameJoin[(Append @@ ((First@Last[#])[[;; 2]]))[[2 ;;]]] & /@ Lookup[Options@$FrontEnd, NotebooksMenu]
Comments
Post a Comment