10 Replies Latest reply on Nov 29, 2013 2:10 AM by Laubender

    [JS][CC] Help needed with targeting pasted item

    Roy Marshall Level 1

      Hi.

       

      Is it possible to be able to targer a selected chunk of text, copy it, and paste it into the page and then identify the pasted frame?

      I can do everything up to the identification of the item.

      I have used

      myDoc.pages[0].allPageItems[0]

      and this sems to work the first time, but I need to repeat the task multiple times, and all subsequest times, I am not targeting the pasted item, rather another text frame that already existed on the page.

       

      If the worst comes to the worst, I can get all the text formatting attributes, and re-apply the text in a new frame and apply the formatting attributes, but this is not ideal.

       

      I am sure I am doing this the wrong way, so any help would be great!

       

      Cheers

      Roy