Sorting PSDs by file dimensions?

Post Reply
ERodgers
Newbie
Posts: 3
Joined: Fri Feb 17, 2017 7:17 pm

Sorting PSDs by file dimensions?

Post by ERodgers »

Hello all, I'm looking for a solution for sorting PSDs by the file's dimensions. I already have a flow in place with an XML Pickup that sorts PDFs based on it's dimensions. I'd like to implement this method using the XML pickup, but the only variable that I can choose that corresponds to the PSDs' dimensions is PixelXDimension and PixelYDimension. I can't use those variables because different file resolutions result in different pixel sizes. Is there anything else I can use?

Thanks!
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Re: Sorting PSDs by file dimensions?

Post by freddyp »

You can use Switch - Calculation in the variables pane. Top right you can create the calculation; this opens up one more variable pane in which you can combine Switch variables and fixed values in a formula using +,-,*,/,% (the percent is for modulo calculation) and brackets.

So in your case you will have to divide the pixel dimensions by the resolution and that is it. Note: I have seen cases where the resolution is not a straightforward number, but a calculation itself (a division), so to make sure the resolution calculation is done first, you will have to put that variable in between brackets.
Post Reply