metadata inline variabiles

Post Reply
Jakub Rafaj
Newbie
Posts: 2
Joined: Tue Mar 18, 2025 11:01 am
Location: Bratislava

metadata inline variabiles

Post by Jakub Rafaj »

Hello, everyone. I just recently started learning Switch by myself for our family-friendly printing company and I would be gratefull for any sort of help, or your knowledge.
I´ve came across metadata and I am confused. In order to *apply some rules to file according to metadata, what is better? To have data with log straight from PitStop Server or just log as XML and inject it back to the workflow.

*by applying rules I mean basically, I want to create a flow that will check if orientation is set to horizontally so in metadata "if MediaBox widht>height then ok" I suppose.
But I dont know which element, (connection??) is best to use with these sort of commands and also how to correctly write down a path to metadata.

Thanks a lot.
Jakub
User avatar
Terkelsen
Advanced member
Posts: 334
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: metadata inline variabiles

Post by Terkelsen »

If you have Switch with the metadata module there is no need to involve PitStop in this.
On a connection between two folders you just set "Include these jobs" as "Condition with variables defined". You then choose [Stats.MediaBoxWidth:Type="Defined"] Greater than [Stats.MediaBoxHeight:Type="Defined"] in order to only route horisontal files this way. You can then make another connection with the same settings except for using "Less than" rather than "Greater than" in order to get the vertical files.
User avatar
magnussandstrom
Advanced member
Posts: 491
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: metadata inline variabiles

Post by magnussandstrom »

Terkelsen wrote: Mon Mar 24, 2025 11:12 am If you have Switch with the metadata module there is no need to involve PitStop in this.
On a connection between two folders you just set "Include these jobs" as "Condition with variables defined". You then choose [Stats.MediaBoxWidth:Type="Defined"] Greater than [Stats.MediaBoxHeight:Type="Defined"] in order to only route horisontal files this way. You can then make another connection with the same settings except for using "Less than" rather than "Greater than" in order to get the vertical files.
Don't forget add [Stats.MediaBoxWidth:Type="Defined"] equal to [Stats.MediaBoxHeight:Type="Defined"] for files that have same height and width. :)
User avatar
Terkelsen
Advanced member
Posts: 334
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: metadata inline variabiles

Post by Terkelsen »

...or use "Greater than or equal to" or "Less than or equal to" depending on where you want these files to go ;)
Jakub Rafaj
Newbie
Posts: 2
Joined: Tue Mar 18, 2025 11:01 am
Location: Bratislava

Re: metadata inline variabiles

Post by Jakub Rafaj »

Thank you both. It worked!! :D :) I was looking for complicated solution than I should and it was simpler than I expected.
Post Reply