Sorting Files by Trimbox Size

Post Reply
ChrisSigge
Newbie
Posts: 14
Joined: Mon Oct 27, 2014 10:19 pm

Sorting Files by Trimbox Size

Post by ChrisSigge »

Hello,

Im new to Switch and it might be an easy task

but I was'nt able to figure out yet how it can be done.



I just want to sort incoming files by the size of their Trimbox and

send them into different Folders.



I found an Element for sorting Jobs and in the Line for Value it's possible to use variable data,

so I chose [Stats.TrimBoxHeight:Precision=297] but it's not working.



Can anyone provide me an simple flow to show me how this is done?

Or just tell me how to do it?



Thank you very much for your help.
manupapet
Newbie
Posts: 15
Joined: Sun Mar 04, 2012 11:08 am

Sorting Files by Trimbox Size

Post by manupapet »

Hi,



You don't write the good syntax.

It's : [Stats.TrimBoxHeight:Precision=0] > 297

But 297 it's bad because the unit is point and not mm.

Change settings acrobat unit in point and read the width or height.

Preicion is the number after the comma, example :

precision="1" : 1,2

precision="2" : 1,23

precision="3" : 1,234

precision="4" : 1,2345

precision="5" : 1,23456



I hope I help you.



PS : this forum contains examples.





ChrisSigge wrote: Hello,

Im new to Switch and it might be an easy task

but I was'nt able to figure out yet how it can be done.



I just want to sort incoming files by the size of their Trimbox and

send them into different Folders.



I found an Element for sorting Jobs and in the Line for Value it's possible to use variable data,

so I chose [Stats.TrimBoxHeight:Precision=297] but it's not working.



Can anyone provide me an simple flow to show me how this is done?

Or just tell me how to do it?



Thank you very much for your help.

User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Sorting Files by Trimbox Size

Post by gabrielp »

Someone did the math here to convert points to mm:

http://www.crossroads-world.com/en/Home ... osts&t=472
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Sorting Files by Trimbox Size

Post by dkelly »

An easy way to sort PDF by size is to use "Set Archive Hierarchy" with the following variables



[Stats.TrimBoxWidth:Precision=2]x[Stats.TrimBoxHeight:Precision=2]



then use an "Archive Hierarchy" to store PDFs into folders.
ChrisSigge
Newbie
Posts: 14
Joined: Mon Oct 27, 2014 10:19 pm

Sorting Files by Trimbox Size

Post by ChrisSigge »

Hi, just want to thank you all for helping

me to understand how this works.
mclarke
Newbie
Posts: 15
Joined: Thu Feb 28, 2013 5:29 pm
Location: Syracuse, NY

Re: Sorting Files by Trimbox Size

Post by mclarke »

dkelly wrote:
An easy way to sort PDF by size is to use "Set Archive Hierarchy" with the following variables



[Stats.TrimBoxWidth:Precision=2]x[Stats.TrimBoxHeight:Precision=2]



then use an "Archive Hierarchy" to store PDFs into folders.
Where exactly can we find "Set Archive Hierarchy" in Switch 12? I don't see any flow elements with that name, nor is it a selection in the Archive Hierarchy flow element itself. The sorting function you describe would be much easier than most that I have come across or built myself.

Is it a script?
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Re: Sorting Files by Trimbox Size

Post by dkelly »

mclarke
Newbie
Posts: 15
Joined: Thu Feb 28, 2013 5:29 pm
Location: Syracuse, NY

Re: Sorting Files by Trimbox Size

Post by mclarke »

Thanks, that's the one I thought should be used. Wanted to be sure.
Post Reply