Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do you modify a preset acrobat action .sequ file (File Name Stamper specifically) to remove the extension from the file name before it places the stamp?

New Here ,
Jan 27, 2017 Jan 27, 2017

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

TOPICS
Acrobat SDK and JavaScript , Windows
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2017 Jan 27, 2017

Shouldn't be too difficult to do, but can you post the code from the Action?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2017 Jan 27, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2017 Jan 27, 2017

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.

http://practicalpdf.com/downloads/FileNameStamper_2.sequ

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 27, 2017 Jan 27, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 27, 2017 Jan 27, 2017

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 30, 2017 Jan 30, 2017

Works like a charm. Thank you again very much Joel.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2017 Jan 30, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 05, 2022 Oct 05, 2022

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 07, 2022 Oct 07, 2022

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2022 Oct 10, 2022
LATEST

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

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines