When running the Aperture Photometry (AP) script and selecting an image (Add Files) it is required that you first click on Image Solver (IS) configuration. If you do not do this and immediately run the AP script, then you will get an error from IS saying it cannot solve the plate. But if you configure Image Solver for the first image then all subsequent images will be okay, i.e., you do not have to configure IS for each of them.
The reason for this I believe is when you run IS it first gets the OBJCTRA and OBJCTDEC values from the image header and writes them to metadata.ra and metadata.dec. When you run the AP script it calls the IS script which in turn loads the metadata (instead of using OBJCTRA and OBJCDEC from the image), which is then used in the solution. If you switch to a new set of images then IS will start with the old metadata and the AP script will fail.
So my question is, when I run the AP script and it calls IS, how do I force IS to always use OBJCTRA and OBJECTDEC and not the metadata?