Skip to main content
Participant
March 28, 2012
Question

adding file name and file full path to a page

  • March 28, 2012
  • 1 reply
  • 870 views

Hi all I'm new to scripting

What I want to do and don't know how to go about it is to run a script that collects the saved file name

and the full path where the file is saved on the network and displays it on my document

If any one has done something similar or if some one can help me create it it would be appreciated

Thanks Gabriel

This topic has been closed for replies.

1 reply

CarlosCanto
Community Expert
Community Expert
March 29, 2012

var idoc = app.activeDocument;

var itext = idoc.textFrames.add();

var file = idoc.fullName;

itext.contents = file.fsName;

Gabriel_sAuthor
Participant
March 29, 2012

Thanks Carlos

It worked very well