Skip to main content
Participating Frequently
January 13, 2024
Answered

Saving multiple opened tabs separately into new folder

  • January 13, 2024
  • 3 replies
  • 8884 views

Hello everyone,

I have many tabs opened (32 tabs ) and I am using Adobe Acrobat Reader version 2023.006.20380. 
I need to save all the 32 tabs separately into new folder, kindly, could you guide on the steps...

Thank you

This topic has been closed for replies.
Correct answer try67

When I run the code, in the first cople of seconds, it tried to read the first file name then it stopped and the previous error message appeard.


Try copying the files to the local computer and run it on them from there, just so we could narrow down the issue.

3 replies

AowsAuthor
Participating Frequently
January 13, 2024

Just want to add that all the 32 pdf documents tabs are using Adobe Acrobat Reader version 2023.006.20380 apllication not the browser...

Participating Frequently
January 13, 2024

Bookmark All Tabs:

  • Right-click on any of the tabs.
  • Select "Bookmark All Tabs."
  • Choose a location (either an existing folder or create a new one) to save the bookmarks. @Aowshouse@Aows
Bernd Alheit
Adobe Expert
January 13, 2024

This doesn't save the documents.

try67
Adobe Expert
January 13, 2024

This can be done using a script, but in order to be able to do that you would need to first open the JS Console, which is not trivial to do in Reader. Is this a one-time thing, or something you need to do from time to time?

Also, the folder will have to exist in advance. The script can't create it for you.

If you only need to do it once I would just do it manually.

AowsAuthor
Participating Frequently
January 13, 2024

Hi @try67 ,
Thank you for your reply, a couple of questions please:
1. How to open JS Console?
2. Currently, I need it for this time, but what if I need it in the future (most likely, yes)?
3. What is the script and where should I write it?

Thank you, 

try67
Adobe Expert
January 13, 2024

1. I actually came up with an easy way to do it... Just open the attached file and click the button.

2+3. You can do it using this code:

 

 

var targetFolder = "/C/Temp/Files/";
for (var i in app.activeDocs) {
	if (app.activeDocs[i].documentFileName=="Show JS Console.pdf") continue;
	app.activeDocs[i].saveAs(targetFolder + app.activeDocs[i].documentFileName);
}

 

 

To run it, paste the code into the JS Console window, select all of it (using the mouse or keyboard) and press Ctrl+Enter. You can edit the first line of the code to point to a different folder path, but make sure to use the same file-path syntax I've used in the code above.

 

Edited: forgot the attachment...