I have a process that opens an email, prints it to PDF and then opens the PDF. I inserted a 10 second delay after print to allow for the printing to finish.
My issue is that in some cases, the email are large or there are network issues that cause the print to take >10 seconds. When the print is >10 seconds, the process continues but it causes an error since Adobe can’t open a file that is being printed.
In most cases the print window dialog is visible only for about 1 or 2 seconds. Ideally, when the print process is finished the process should continue but it is ok if the process waits another 10 seconds.
I don’t know how to test/trap that a PDF is still being printed.