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

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

It is easy to create a template for a collage like you show and populate it with your images with a script. However there are some limitations in Photoshop that may impose limitation on you.  It may also be hard to support some thing and make it easy to create templates.  Something like rotating image and perspective placement most likely can only be done by using complex templates that are hard to create and the scripts would need to replace smart object layers embedded object contents with image that are the same size as the current embedded object.  I chose to make it easy to make templates and not support rotation and perspective with automation.  You can still create template like you show, but images will be place in without rotation and perspective.  However images will be placed image layers in the populated collage that you can change its transform manually to add rotation and perspective.  You can even create a batch if these collages and add the  rotation and perspective  later. View Screen Capture in new browser tab or window so you can scale to actual pixels this site scales uploaded image poorly.
A video showing on how script population works http://www.mouseprints.net/old/dpr/Populate911_720p.mp4
Photo Collage Toolkit UPDATED Made Rotate for Best Fit an option in PasteImageRoll.jsx Edit to customize your default settings.
Photoshop scripting is powerful and I believe this package demonstrates this.
The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
There are twelve scripts in this package they provide the following functions:
TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.
Documentation and Examples

Similar Messages

Maybe you are looking for