Page 1 of 1
Pitstop Server - how to check spot colors
Posted: Sun Nov 16, 2014 2:26 pm
by ArielRauch
Hi,
I would like to to have the user input all the spot color names (only the number part) that should be in the job file and then have Pitstop server check it (via configurator).
Now there is the "check spot color name" action with regular expression which does exactly what I want but it logs the answer as warning or error if it finds the spot name. I need it the other way arround.
Any suggestions?
Ariel
Pitstop Server - how to check spot colors
Posted: Tue Nov 18, 2014 9:58 am
by freddyp
Use the Action "Select page if objects are selected" and invert that selection. If there are pages that are still selected, it means the colors are not there.
Freddy
Pitstop Server - how to check spot colors
Posted: Tue Nov 18, 2014 3:50 pm
by ArielRauch
not sure that I understood: the result of check spot color is perfect if the reaction was success. Only if the spot color does not exists I want an error
Pitstop Server - how to check spot colors
Posted: Tue Nov 18, 2014 9:37 pm
by freddyp
Select spot color by name (using regex)
Select page if content is selected ("Only select page object" and "equal to - 0")
Log selection (with a message and set it to error)
If the spot color does not appear (number of selected objects is 0), the selection in the second line will be empty and the third line will do nothing. Else, you get the log and the error status.
Freddy
Pitstop Server - how to check spot colors
Posted: Wed Nov 19, 2014 8:03 am
by ArielRauch
It works like a charm!!! Thank you Freddy.
Last thing with this issue (I think): I would like to have the user input only a number. I do not find a programmatic way to enclose the number with .*.* for the regular expression.
With switch it is easy but what about Pitstop Server alone?
Thanks
Ariel
Pitstop Server - how to check spot colors
Posted: Wed Nov 19, 2014 2:46 pm
by freddyp
In the variable set put .* before and .* after the variable. Something like:
.*[Metadata.Text:Path="/field-list/field[tag='Ink nr']/value",Dataset="Submit",Model="XML"].*
Freddy
Pitstop Server - how to check spot colors
Posted: Thu Nov 20, 2014 7:17 am
by ArielRauch
I did this of course. I meant on the Pitserver level when defining the variable assignment.
Thank you, Freddy
Pitstop Server - how to check spot colors
Posted: Thu Nov 20, 2014 11:06 am
by freddyp
When defining variables in a variable set in PitStop Server you can certain manipulations (uppercase conversion, regex, ...) on, but you cannot add anything to the value you retrieve from the XML job ticket.
Freddy
Pitstop Server - how to check spot colors
Posted: Thu Nov 20, 2014 11:07 am
by ArielRauch
thank you