I need to batch apply some script to all documents within a specified folder. Can I open each document one by one without specifying the filename?
So, instead of:
var myDocument = app.open(File(Folder.desktop + "/OpenDocument.indd"));
var myDocument = app.open(File(Folder.desktop + "/" + documents));
Obviously that doesn't work, but hopefully it illustrates what I am trying to achieve.
Thanks in advance,
Folder.getFiles will return a list of all files in that folder as an array