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!
Sorting PSDs by file dimensions?
Re: Sorting PSDs by file dimensions?
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.
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.