Skip to main content
Inspiring
October 1, 2015
Answered

find file

  • October 1, 2015
  • 1 reply
  • 363 views

Hi,

I want to make sure that exists file in the specified directory using file full path.

Please give me the JS code snippet.

Thanks for help.

This topic has been closed for replies.
Correct answer BSKTCreation

Hi,

This is what I do.

myFile = File("//{put your path here}/File Name.INDD"); // can be any file extension doesn't have to be InDesign

alert(myFile.exists);

Brett

1 reply

BSKTCreationCorrect answer
Inspiring
October 1, 2015

Hi,

This is what I do.

myFile = File("//{put your path here}/File Name.INDD"); // can be any file extension doesn't have to be InDesign

alert(myFile.exists);

Brett