Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

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

$
0
0

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


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>