Command or script for opening recent file (list)

 From:  Michael Gibson
10346.2 In reply to 10346.1 
Hi Metin, here's a script that will open the most recent file on the recent file list:

script: /* Open most recent file */ var Files = moi.ui.getRecentFiles(); if ( Files.length > 0 ) { var LastFile = Files.item(Files.length-1); var FileName = LastFile.item(2); var Options = LastFile.item(3); moi.command.execCommand( 'open ' + FileName + Options ); }

- Michael