Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87561

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

$
0
0

// 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 ...


Viewing all articles
Browse latest Browse all 87561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>