5 Replies Latest reply on Sep 28, 2015 2:44 AM by Jump_Over

    doc recent refresh

    hamdifem Level 1

      I wrote a code. To view the recently used documents (The last 10 used)

      several documents opened and after closing

      When I run the code

      showing the old list, liste not renewed

      What should be done for it

       

       

      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();