to your questions
The physical printer is to be used
the standard settings of the Chrome print dialog can be used
As far as possible, it should be automated so that no one has to click on print on every page.
and here is the HTML of one of the pages to be printed ...
There are too many characters for this thread, hence a link to an HTML on my server. http://area85.de/html.pdf
Thanks, but I really need the HTML code. Can you please zip the HTML file and upload it here?
If for some reason you can't upload here, a link to the zip file on your server will be fine.
OK, I believe I have a solution for you.
This macro first extracts all links from the main web page with the table.
It then displays an Alert for you to confirm you want to print all of then Links:
A new Tab is opened, then each link is opened in it and prints it.
A standard Notification is sent as each link is printed.
The tab is closed when the macro is finished.
Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.
Please test with an main web page the contains only a few links in the table, something like 3-5 links.
If that works well, then you can use with larger tables.
Please let me know if you have any issues, or need to tweak the macro in any way.
Extract the URL from each Link in Designated Table (using querySelector)
Then Open and Print each URL
HOW TO USE
First, make sure you have followed instructions in the Macro Setup below.
See the below "How to Use" Comment Action
This macro is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.
MACRO SETUP
Carefully review the Release Notes and the Macro Actions
Make sure you understand what the Macro will do.
You are responsible for running the Macro, not me. ??
. Make These Changes to this Macro
Assign a Trigger to this Macro .
Move this macro to a Macro Group that is only Active when you need this Macro.
ENABLE this Macro, and the Macro Group it is in.
For more info, see KM Wiki article on Macro Activation
.
REQUIRES:
KM 9.0+ (may work in KM 8.2+ in some cases)
macOS 10.12.6 (Sierra)+
TAGS: @Example
USE AT YOUR OWN RISK
While I have given this a modest amount of testing, and to the best of my knowledge will do no harm, I cannot guarantee it.
If you have any doubts or questions:
Ask first
Turn on the KM Macro Debugger from the KM Status Menu, and step through the macro, making sure you understand what it is doing with each Action.
So please try this:
In the JavaScript Console window of the Chrome DevTools, enter this: linkCollect = document.querySelectorAll('#tourListTable td a');
and press return.
You should see: NodeList(9) [a, a, a, a, a, a, a, a, a]