1 Reply Latest reply on Dec 5, 2015 1:44 AM by c.pfaffenbichler

    Resizing script (dimension.height < dimension.width) not working

    Cyrbyzy

      Hi there,

       

      I've been trying for hours to write a script (js) triggering resizing actions depending on the image size.

       

      Here's where I'm stuck:

       

      if (dimension.height < dimension.width) 
          app.doAction("Horizontal","Resizing.ATN")
          
      else 
          app.doAction("Vertical","Resizing.ATN")
      

         

      Any tips are welcomed!