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
Removing the extension when using the %Current Document Name%
-
- Newbie
- Posts: 4
- Joined: Sun Jul 09, 2017 11:14 am
Re: Removing the extension when using the %Current Document Name%
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.
If we could add a regular expression, the following should do the trick:
Code: Select all
\.[^\.]+$
Re: Removing the extension when using the %Current Document Name%
Could this be done using Switch?
Re: Removing the extension when using the %Current Document Name%
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.
In the PitStop Configurator in Switch change that type to "Text with variables" and use [Job.NameProper] as the variable value.