Insert images into Pages document using AppleScript
Here's an example that works.


set thisImage to choose file with prompt "Select an image"
tell application "Pages"
  tell (make new document)
      tell body text
          make new paragraph at end with data "another paragraph" with properties {paragraph style:"Body"}
          make new image at after last paragraph with properties {image data:thisImage}
      end tell
  end tell
end tell