Do you have a Power User Subscription?
There’s a guide on how to use the global scripts if you have and one of the examples is auto check the “Attach PDF” box.