I wrote a code to view recently used documents (the last 10 used)
but many documents After the opened close When I run the code all the old list shows
How to refresh list or do I have to write another code
var w = new Window("dialog"); var myList2 = w.add("listbox"); myList2.preferredSize = [500, 350]; for(var i = 386; i < 396; ++i) { var mytop = app.menuActions.itemByID(i); myList2.add("item", mytop.name); } w.show();