Page 1 of 1
Removing the extension when using the %Current Document Name%
Posted: Mon Oct 30, 2017 1:48 pm
by dreimer
I want to create an action to add a code to my document based on the filename. I have done this but wanted to know if there is a way to remove the extension (".pdf").
TIA
Re: Removing the extension when using the %Current Document Name%
Posted: Fri Dec 15, 2017 11:32 am
by Stephen_A_Marsh
Not that I am aware of.
If we could add a regular expression, the following should do the trick:
Having the ability to create our own text variables or to modify standard text variables would be nice.
Re: Removing the extension when using the %Current Document Name%
Posted: Thu Apr 11, 2019 6:20 pm
by dreimer
Could this be done using Switch?
Re: Removing the extension when using the %Current Document Name%
Posted: Tue Apr 23, 2019 10:24 am
by Terkelsen
Yes it can be done in a combination of PitStop Server and Switch. Create a Variable set in PitStop Server with a single variable of the type Constant->Text.
In the PitStop Configurator in Switch change that type to "Text with variables" and use [Job.NameProper] as the variable value.