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!
if (dimension.height < dimension.width)
supposed to refer to?
Have you defined a variable named "dimension" for the active document?