Page 1 of 1
variables Hight and width
Posted: Fri Aug 22, 2025 12:54 pm
by Robbie
He guys. Im verry new with the switch app. I want to make a flow where we can make a proof for the custumers. We have it running in Pitstop pro with 2 different actions (one for landschape and one for portrait files) but would like to get it up in switch.
I made a input folder in switch and connected the actions and veriables from pitstop pro. if you drop a file onto the flow it wil let you choose portrait ore landschape. But hoe can i get switch to select the correct pitstop action?
Re: variables Hight and width
Posted: Fri Aug 22, 2025 1:03 pm
by JimmyHartington
Hi Robbie
If the file is landscape should it the be just run the landscape action list and vice versa.
Because then you could just drop the file in the flow.
Have Switch find the orientation and run the correct action list based on this.
And this can be achieved in a variety of ways.
Are you using the portal to submit the files to a submit point?
Can the be square files (width and height is the same)? Which action list should they use?
Re: variables Hight and width
Posted: Fri Aug 22, 2025 1:13 pm
by Robbie
JimmyHartington wrote: ↑Fri Aug 22, 2025 1:03 pm
Hi Robbie
If the file is landscape should it the be just run the landscape action list and vice versa.
Because then you could just drop the file in the flow.
Have Switch find the orientation and run the correct action list based on this.
And this can be achieved in a variety of ways.
Are you using the portal to submit the files to a submit point?
Can the be square files (width and height is the same)? Which action list should they use?
Jimmy, 1e question is yes if the file is landschape it schould run the landschape action and visa versa.
and we are using the switch submit portal. and for sqaure files i think the landscape one is better for that
Re: variables Hight and width
Posted: Fri Aug 22, 2025 1:35 pm
by JimmyHartington
For a simple solution I would sort the files to in a Portrait and Landscape folder and then have a Pitstop configurator to run the action list corresponding to the orientation.
Like this:

- Royal TSX-Flow-server03-2025-08-22 at 13.37.49@2x.jpg (36.85 KiB) Viewed 491 times
The trick is the connection from Collected files called Portrait has this condition:

- Royal TSX-Flow-server03-2025-08-22 at 13.24.10@2x.jpg (28.92 KiB) Viewed 493 times
The variable in Greater than or equal is Trim Box Width. This assures that Portrait and Square ends up in this folder.
The other connection is just set to other.
Other ways to do this is having one action list which selects a page based on the orientation and the has the correct changes after this selection.
Or a Pitstop Profile with 2 action lists inside where orientation triggers one or the other.
But if you are new to Switch I think this way is conceptually simple to understand.
Re: variables Hight and width
Posted: Fri Aug 22, 2025 2:02 pm
by Robbie
Thanks Jimmy, seems to work. sometimes its so simple, but you looking in the wrong ways.. now i just need to get textlines that are put in when you submit the job into the pdf file that been generated. I need to make a connection from the submit to the varibles in the pdf action.
Re: variables Hight and width
Posted: Fri Aug 22, 2025 2:06 pm
by JimmyHartington
Variables as a topic comes up on the forum now and again.
If you see the last post here:
viewtopic.php?p=19192&hilit=variables#p19192
I made a short video showing the process from Pitstop Pro to Switch for variables.
Re: variables Hight and width
Posted: Fri Aug 22, 2025 4:55 pm
by freddyp
For the sake of clarity of the flow you may want to stick with what you have, but you can reduce to it just 1 PitStop Server element if you use "Select page by orientation" in your Action List.