Skip to main content
Inspiring
September 2, 2010
Question

Open all files in folder using Javascript

  • September 2, 2010
  • 2 replies
  • 5127 views

Let's say I want to open all the files in a particular folder, without knowing the names of those files.

Any ideas?

Thanks!

This topic has been closed for replies.

2 replies

Inspiring
September 28, 2010

ok I solved it

var inputFolder = Folder.selectDialog( "Please select top level folder to process");
var fileList = inputFolder.getFiles();

for(i=0;i<fileList.length;i++) var docRef = app.open(fileRef);

JJMack
Community Expert
Community Expert
September 3, 2010

There are many threads here that have javascript code to process folders do a search. Search on ".getFiles"

JJMack