Apple Mail get attachment and delete

The object I have is pretty simple:

  1. Check for new eMail
  2. If new eMail has an attachment, run Applescript to download the attachment to a local folder
  3. Delete that Message

However, in Mail if the Rule is set to do the foregoing and then saved, on re-opening the Rule event order has reversed to Move Message to Trash as first event. This precludes the Applescript from running. It’s fully repeatable behaviour.
Has anyone else seen this or have a fix?