: Indesign script to copy from clipboard to story I know app.paste(); method dumps the contents of the clipboard at the spot where the cursor is currently. However, I want to define the location
I know app.paste(); method dumps the contents of the clipboard at the spot where the cursor is currently. However, I want to define the location via a variable such as this:
myStory = app.activeDocument.stories[1];
And I want to dump the contents of the clipboard in that story as defined by the variable myStory. Is it possible? How?
More posts by @Cooney243
1 Comments
Sorted by latest first Latest Oldest Best
I think you cant insert it into the story, but you can use insertionPoints like this:
var doc = app.activeDocument;
var ip = doc.stories[1].insertionPoints[0];
app.select(ip, SelectionOptions.REPLACE_WITH);
app.paste();
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.