B4Print.com

Workflows => Enfocus => Topic started by: Kermy812 on October 20, 2018, 03:15:46 PM

Title: Add filename without extension
Post by: Kermy812 on October 20, 2018, 03:15:46 PM
So I have tons of pdfs that are named by the item code, but it's not on the pdf itself. I know I can do add a text action and use the  %Current Document Name% as a variable, but I don't want to add the ".pdf". If my pdf is named CODE_XYZ.pdf, I want to have CODE_XYZ as the code added to the sign. Anyway to do with pitstop?
Title: Re: Add filename without extension
Post by: Kermy812 on October 22, 2018, 09:23:28 AM
The more I think about it - I guess it's simple enough to select all of the pdf's from the finder right-click and just rename all to remove the .pdf from the filename, the run the action. Then rename all to add the .pdf back.
Title: Re: Add filename without extension
Post by: Slappy on October 22, 2018, 07:13:25 PM
Was going to suggest that, unless you've got to do it repeatedly all day, every day. I bet that can be tied into an Action through Automater to just Drag & Drop the files, or an actionscript.
Title: Re: Add filename without extension
Post by: swampymarsh on October 24, 2018, 12:29:39 AM
We really need the ability to add regular expressions or otherwise alter the default variables (javascript or something), add new "user defined" variables or have a new variable for separate filename and separate extension, or a search/replace text option (which is hard to do with PDF text) etc.

I have a half-arsed solution that works in an action list to remove ".pdf"  – as long as the filename does not actually contain the characters "." or "p" or "d" or "f" elsewhere, which is not that useful in practice ("dog.pdf" would become "og" etc)!
Title: Re: Add filename without extension
Post by: Fat Boy Tim on October 25, 2018, 11:44:20 AM
Quote from: Kermy812 on October 20, 2018, 03:15:46 PMSo I have tons of pdfs that are named by the item code, but it's not on the pdf itself. I know I can do add a text action and use the  %Current Document Name% as a variable, but I don't want to add the ".pdf". If my pdf is named CODE_XYZ.pdf, I want to have CODE_XYZ as the code added to the sign. Anyway to do with pitstop?

Ok... So you can add this as action list or global change. Not sure if you get any extra options in global change. I'm away from the office.

Can you add the text in the top right hand corner so .pdf is always in the same place every time and then mask it with a small white rectangular in the next action ?
Title: Re: Add filename without extension
Post by: Joe on October 25, 2018, 12:08:49 PM
Or ask ABC to change %Current Document Name% as just the name minus the extension and then add an %Current Document NameExtension% as the full name with the extension. Win Win for everyone.
Title: Re: Add filename without extension
Post by: Kermy812 on November 16, 2018, 11:19:14 AM
Tim, The job is long and gone, but that was great idea, but all my backgrounds are different. But that gave me an idea for future that I could just do action do draw a box, select the new code & simply make mask too hide the ".pdf"
Joe, I'm a bit confused on what you are meaning by "Or ask ABC to change %Current Document Name%..."
Title: Re: Add filename without extension
Post by: Joe on November 16, 2018, 12:56:07 PM
ABC is the product manager for Pitstop. If they could give you the option of using %Current Document Name% without the extension it would solve your issue. Make a feature request with Enfocus.