7 Replies Latest reply on Jul 22, 2014 4:01 AM by Teetan VK

    How can use radiobuttonControls to join three scripts together?

    Teetan VK Level 1

      Hi everyone, I got three scripts:

       

      1st script:

       

      Main();

      function Main() {
      var docs = app.documents;
      for (var i = docs.length-1; i >= 0; i--) {
        docs[i].close(SaveOptions.NO);
      }
      }

       

      2nd Script:

       

      Main();

      function Main() {
      var docs = app.documents;

      for (var i = docs.length-1; i >= 0; i--) {
        docs[i].close(SaveOptions.YES);
      }

      }

       

      3rd Script:

       

      var docs = app.documents;

      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

      app.documents.everyItem().revert();

      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;

       

       

       

       

      I want join them together by use radio buttom control


      Can someone help me to make it happen?

       

      thanks!


      Teetan VK