Page 1 of 1

%Current Document Name% with out the unique prefix

Posted: Mon Aug 15, 2022 2:50 pm
by jena@stibo.com
Hi
I haven make a action there changes the document titel, in the PDF to the document name.
from-pitstop.png
from-pitstop.png (13.51 KiB) Viewed 2971 times
my issue are a I get the unique prefix remains in the document title from the server, how can I remove the unique prefix from switch.

look like this in pdf
frompdf.png
frompdf.png (5.52 KiB) Viewed 2971 times
i will not see the unique prefix in the titel in the PDF.

And my problem are I not haven script or meta plugin.

I hope someone can help thanks

Re: %Current Document Name% with out the unique prefix

Posted: Tue Aug 16, 2022 8:24 am
by freddyp
You can use a PitStop variable that is defined as [Job.Name].

Re: %Current Document Name% with out the unique prefix

Posted: Tue Aug 16, 2022 10:42 am
by jena@stibo.com
Hi Freddyp
I haven try the PitStop variable, and I can not get it to work, maybe I do it wrong.

I make the variable like this
variable-d.png
variable-d.png (37.78 KiB) Viewed 2932 times
And inset in the action like this
Variable.png
Variable.png (18.15 KiB) Viewed 2932 times
But in the PDF its are like this
PDF.png
PDF.png (8.38 KiB) Viewed 2932 times
So Its can not see its are a variable. What do I wrong?

Re: %Current Document Name% with out the unique prefix

Posted: Tue Aug 16, 2022 12:59 pm
by laurentd
[Job.Name] is a Switch variable, is not recognized by PitStop Pro or Server, so using it in an action list will not work.

Create a variable set in PitStop, and define a JobName Text variable.
Use this variable in your action list.

Go to Switch, use the PitStop Server element, select your action list and your variable set, do NOT click on ok, but first right click on the variable set to edit it from Switch, then edit the JobName variable. Use any Switch variable you want, in this case [Job.Name].
[Job.Name] is the job name with the file extension. If you prefer without the file extension, use [Job.NameProper]

Here is another post about this, with screenshots: viewtopic.php?t=1689

Re: %Current Document Name% with out the unique prefix

Posted: Tue Aug 16, 2022 2:26 pm
by jena@stibo.com
Thanks, and now its works.

Thanks for all the help.