Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

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

$
0
0

@Roy – Does the following snippet work for you (tested in InDesign CS5.5)?

 

Selection must be a text selection:

 

app.copy(app.selection[0]);
app.select(null);
app.paste(); 
var myNewTextFrame = app.documents[0].windows[0].activePage.textFrames[0]; 
myNewTextFrame.fillColor = "Yellow";

 

Of course, you could run into trouble, if the selection exceeds the current spread…

 

 

Uwe


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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