Removing the extension when using the %Current Document Name%

Post Reply
dreimer
Newbie
Posts: 2
Joined: Mon Oct 30, 2017 1:45 pm

Removing the extension when using the %Current Document Name%

Post 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
Stephen_A_Marsh
Newbie
Posts: 4
Joined: Sun Jul 09, 2017 11:14 am

Re: Removing the extension when using the %Current Document Name%

Post by Stephen_A_Marsh »

Not that I am aware of.

If we could add a regular expression, the following should do the trick:

Code: Select all

\.[^\.]+$
Having the ability to create our own text variables or to modify standard text variables would be nice.
dreimer
Newbie
Posts: 2
Joined: Mon Oct 30, 2017 1:45 pm

Re: Removing the extension when using the %Current Document Name%

Post by dreimer »

Could this be done using Switch?
User avatar
Terkelsen
Advanced member
Posts: 297
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Removing the extension when using the %Current Document Name%

Post 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.
Post Reply