Recent File List

I'm trying to find out how to query the recent file list, so I can store the results in a variable.
Anybody know this one?

Googled 'recent files' and looked in the help without turning up a sausage!

this information is stored in an optionVar

said optionVar's name is RecentFilesList... soo....

optionVar -q RecentFilesList

right. :]

Also reminds me of a nice script I made for my shelf:

CODE
global proc loadRecentFile(int $number)
{
    int $executeScriptNodes = true;

    string $recentFilesArray[] = optionVar -q RecentFilesList;
    string $file = $recentFilesArray[size($recentFilesArray) - $number];

    if (window -q -ex loadRecentFileWindow)
        deleteUI loadRecentFileWindow;

    window -title "Reload Last Scene:" loadRecentFileWindow;
        columnLayout;
        text -bgc 0.61 0.71 0.8 -w (size($file) * 7) -rs 1 -font "boldLabelFont" -l (" " + $file) -align "left" reloadLastText;
        window -e -w (size($file) * 7) loadRecentFileWindow;
    showWindow loadRecentFileWindow;
    showWindow MayaWindow;

    // remember selection
    string $sel[] = ls -sl;
    // remember context
    string $whichCtx = currentCtx;

    saveChanges("file -f -executeScriptNodes " + $executeScriptNodes + " -o \"" + $file + "\"; addRecentFile(\"" + $file + "\", \"mayaBinary\");");
    deleteUI loadRecentFileWindow;

    // if selection exists recover it
    if (size($sel))
        for ($x in $sel)
            if (objExists $x)
                select -add $x;

    setToolTo $whichCtx; // recover the current Context
}

loadRecentFile 1;

looks up the recent file list and loads either the current file again (1), or the last one (2)or the last but 1 (2)... Very nice for switching between files on one click rather than going into the file menu. And it recovers context and selection if possible (of course Nice for reload)