12 Replies Latest reply on Sep 9, 2014 7:16 AM by JJMack

    I have made a script but i need it to run again and again. i mean i need  simple looping pls help me.

    sunu2014

      // this is my script  I Want to run this script again nd again 

       

      doc = activeDocument;

             doAction("Action 4","Set 1");

                 doc = activeDocument;

                 if (doc.height > doc.width)

                  {

                     doAction("Action 1n","Set 1");

                doc = activeDocument;

                 if (doc.height > doc.width)

                  {

                  doAction("Action 1nn","Set 1");

                               }

                           else {

               

                doAction("Action 5","Set 1");     

                  }}

            if (doc.height < doc.width)

                 {

                    doAction("Action 1n","Set 1");

                      doc = activeDocument;

                 if (doc.height < doc.width)    

                  {

                  doAction("Action 1nn","Set 1");

                 }

               else {

              doAction("Action 5","Set 1");

                              } }

          

      and also before this i want to open folder in that it should open psd 001 and so on...and when after looping it should folder in that it should open psd 002.... OR explain me easy way to looping. as i dont no scripting language.

           Thanks ...