script for "Open Recent"
Looking for a script that will open the most recent item from the "Open Recent" list?
This smart fellow made this script that lets you open a selection from the Open Recent list:
http://morris-photographics.com/photoshop/scripts/open-recent.html
...but I want it to skip the dialogue window and just open the most recent. Can anyone please fix this attempt I made?
var recentItems = [];
var len = recentFiles.length;
for (var i = 0; i < len; i++) {
recentFile = recentFiles;
if (recentFile.exists) {
recentItems.push(recentFile);
if (recentItems.length == 1) {
break;
}
}
}
len = recentItems.length;
1 = Math.min(1, len);
app.open(File(recentFile));
Cheers!
