Skip to main content
Inspiring
Oct 1, 2018 7:17 PM UTC
Question

Folder selection box - How to bring it up using Javasript

Not looking for app.browseForDoc() function.  This one only gets the files.  I am looking for a way to bring up the Folder selection box so a user can select the folder location where a list of files are kept and then have a simple script to loop through the folder selected and combine them into one document. 

Does anyone know how to do this?

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

try67
Community Expert
Community Expert
Oct 1, 2018 7:24 PM UTC

Acrobat JS doesn't have that capability. The only way you can get a list of files in Acrobat is if you run an Action over the folder.

Translate
Inspiring
Oct 1, 2018 7:58 PM UTC

I know that the Action has a Folder selection object and then you can run a javascript right after.  How do you capture what folder option the user selected?

Translate
try67
Community Expert
Community Expert
Oct 1, 2018 8:53 PM UTC

You can't. But you can capture the paths of the files it is processing.

Translate