Skip to content

Instantly share code, notes, and snippets.

@Neoglyph
Last active May 24, 2018 14:11
Show Gist options
  • Save Neoglyph/e07d89a44ba413bbb11c79c93d2ccb38 to your computer and use it in GitHub Desktop.
Save Neoglyph/e07d89a44ba413bbb11c79c93d2ccb38 to your computer and use it in GitHub Desktop.
InDesign Select Folder + All Files Script
var myFolder = Folder.selectDialog("Select a folder with InDesign files");
if (!myFolder)
exit(0);
var myFileList = myFolder.getFiles();
for (var i = 0; i < myFileList.length; i++) {
var myFile = myFileList[i];
if (myFile instanceof File && myFile.name.match(/\.indd$/i)) {
app.open(myFile);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment