4 Replies Latest reply on Nov 13, 2008 2:12 PM by sstanleyau

    (AS) Paste into selection (an anchored object)

      I have a script which sets the object style and size of an anchored object, and then I want to paste the text I have copied into the object. I have 100s of anchored objects to set up in the document I am working on now so I'd appreciate some help.

      Here is my script:
      tell application "Adobe InDesign CS3"
      tell active document
      set myObjectstyle to object style "Trident anchor"
      set myTextFrames to selection
      apply object style myTextFrames using myObjectstyle with clearing overrides
      end tell
      tell application "Adobe InDesign CS3"
      set geometric bounds of selection of document 1 to {20.0, 78.0, 39.0, 39.0}
      paste into selection -- this bit does not work.
      end tell
      end tell