Copy link to clipboard
Copied
I would like to modify a preset acrobat action(.sequ file) (File Name Stamper) to remove the extension from the file name before it places the stamp. Ideally it would be a check box in the Action Settings dialogue. I have no scripting/programming experience. Is this something that is straightforward to accomplish? Thx. Apologies for being clueless.
Derek
Copy link to clipboard
Copied
Shouldn't be too difficult to do, but can you post the code from the Action?
Copy link to clipboard
Copied
It'll be simple but not trivial. The Action uses a dialog that you need to be careful not to mess up.
The first thing to know is that .sequ files are just XML. You can open it up in any XML editor and locate the "item" with the name "ScriptCode". This is an encoded version of the JavaScript you need to modify. Just decode it, edit it to remove the file extension, encode it again nd put it back exactly where you found it.
There's a great tool for encoding and decoding the JavaScript here Encode/Decode HTML Entities - Webatic
Copy link to clipboard
Copied
Actually... I took a few minutes and just added a checkbox to to the dialog to include the file extension... or not. The default is checked to keep it consistent with the original. You can grab it at the URL below until I find a more permanent home for it.
Copy link to clipboard
Copied
Dude! Thank you. That's awesome and educational all at the same time. really appreciate your help with this. And the super quick response too. Cheers!
Derek
Copy link to clipboard
Copied
Got the file but don't have the right version of Acrobat at home. I'll test it out when I get to work tomorrow! Thanks again!
Copy link to clipboard
Copied
Works like a charm. Thank you again very much Joel.
Copy link to clipboard
Copied
Great thanks. It seems that the Acrobat Actions Exchange is no longer accepting new actions so I'll post this version to my blog. The download will live at the same URL though.
Let me know if you find any bugs.
Copy link to clipboard
Copied
Hi Joel, is this action (FileNameStamper_2, where you can remove the file extension from the Stamp) still available somewhere? It would be perfect for an Adobe project I'm working on at the moment. Thanks!
Copy link to clipboard
Copied
I was able to download from the URL link posted above on 27.01.17. It works fine except that, unlike the standard File Name Stamper, if you are applying the title to each of a number of pdf files (to later combine in one pdf file say) you have to change the settings from the default for each file. The standard File Name Stamper retains the settings of the first. Is there a fix for this? Please?
Copy link to clipboard
Copied
You'll find an updated File Name Stamper tool here, with many more options than the original, but it's not free.
https://www.pdfscripting.com/public/File-Name-Stamper-Action-Description.cfm
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more