My use case is as follows.
The Todays work folder is my virtual desk. I keep all my current project files in here. When I am done I have to attach everything to the main PDF file. The issue is that I do not know what the attached files names will be ahead of time. They change with every project. Right now I just drag and drop them which works fine but if I can just automate the process that would be even better.
The folder will always be the same.
The filename changes.
The number of files change
I have no problem importing a single file at a time using the below code.
Of course this only works if I know the filename ahead of time.
I am also aware I need a priveleged function (not an issue)
So in pseudocode:
I need to open the folder
Get the names and number of files. (Which will always be PDF)
Loop through them and attach them to the working PDF. Which is also in the same folder.
Seems like it should be simple enough but I can't figure it out. I have done hours of googling but nothing that fits my exact use case.
Can anyone point me in the right direction?
thanks in advance.
Copy link to clipboard
That is not possible in Acrobat, unless you collect the file-paths using an Action or they are known in advance, or follow a specific pattern.
Hmmm, darn. I was afraid of that. I guess I will just stick to dragging and dropping for the moment.
Thanks for the reply 🙂