Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Calculating width height in script

$
0
0

thanks again as i didn't know anything about javascript it is difficult to edit this script for me it upto this it is helpful the thing only missing is that it should store the value of length and width so that it will compare with the opened image it should store value seprately of each layer. the eg in layer 1 layer2 so on.

 

The porpose for this is

 

step 1     open  a   psd file (say 001) (from a specified folder which have more than 100 psd )  a psd which contains 7-8 layers .

step 2     count the layer in psd file.   say 8

step 3     open the image from a specified folder (ask for folder to browse) should open  8 image (according to count if layer is 8 then 8 so on)

step 4     than it should  store the value of L & W of first layer  .( the porpose for this is to know whether the layer and image is potrait or landscape)

step 5     than it will store the value of 1st open image  ( the porpose for this is to know whether the layer and image is potrait or landscape)

step 6     if both are  potrait then run Action 1 and similarily compare 2nd layer if true run action 2 3rd layer if true run action 3 and so on.    if one is potrait and another is landscape then close all . if 1st is true any one is false than close all donot save.

step 7     open another psd   (say 002)  this time psd will be next.  and image will from 1st.

step 8    it will got  all image similar to layer and  it will run action1-n

step 9    if all is true it will save that psd in new folder as a 001

step 10   then open next psd  and image next to that  (opened image it will opened only when it will saved psd ).

step 11  again follow step 2 ( may be looping needed).

step  12  if all is true then it will save psd in that which is made (step 9) but as a (named) 002.

 

if it is not sufficient to understand than pls send me ur email address in my email I will send u some images with example  ( my email is  imsunil1978@gmail.com)

 

thanks alot for giving me response  . 


Viewing all articles
Browse latest Browse all 27456