Skip to main content
Participant
October 6, 2024
解決済み

In the dynamic stamp, output the directory of the document to be stamped

  • October 6, 2024
  • 返信数 2.
  • 524 ビュー

To display the file name I use:
event.value = event.source.source.documentFileName;
I couldn't find anything to display the directory.
Is there a way?

このトピックへの返信は締め切られました。
解決に役立った回答 leo45

Just the name of the folder in which the document is located would be perfect.
Thanks for the super-fast reply

返信数 2

try67
Community Expert
Community Expert
October 6, 2024

The full directory path, or just the name of the folder where it's located?

leo45作成者解決!
Participant
October 7, 2024

Just the name of the folder in which the document is located would be perfect.
Thanks for the super-fast reply

try67
Community Expert
Community Expert
October 7, 2024

Use this:

 

var pathParts = event.source.source.path.split("/");
event.value = pathParts[pathParts.length-2];

PDF Automation Station
Community Expert
Community Expert
October 6, 2024

event.value=event.source.source.path;