Thanks, FG, fine advice as always.
EDIT: I had worked out this solution that requires two scripts. It works, but there must be a better way using COM. The problem I'm trying to overcome is the line
which is modal, I guess, and stops the script dead in its tracks. The other problem, of course, is that it's visible.
Script 1: acro.ahk
Script 1 runs Script 2, acrohelper.ahk:
EDIT: I changed both scripts just a little. This DOES work, but both scripts have to be in the same directory, and you have to run acro.ahk first, as it starts the second script. (I've tried using SetTimer to combine this into one script, but I haven't been able to kill Acrobat after the XML file is saved, although it does successfully save the XML file.)