Anchored Text Boxes delete QuarkXpress

Hi All

I want to copy content of every anchored text boxes from the front document. And paste in another text box and delete that anchored text box. See below are the requirement:

  1. Count all anchored text boxes.
  2. Start Loop
  3. Get location of that box.
  4. Copy content in a variable
  5. Delete box.
  6. Make a text box
  7. Paste content
  8. End Loop

I am using OS 9.2 and QuarkXpress 4.11.
Thanks in Advance