Open all files in a folder using persistent token

You just need to open each file individually within your loop rather than pushing to an array and passing that to app.open().
You’ll need to use .getEntry() and pass the returned value to app.open(). You’ll also need to use executeAsModal to perform the file open.
See here for more detail.

1 Like