Mobile app version of vmapp.org
Login or Join
Cooney243

: 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

@Cooney243

Posted in: #AdobeIndesign #IndesignScripting

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney243

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sims5801359

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();

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme