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
|