Mobile app version of vmapp.org
Login or Join
Cooney243

: Indesign script to add/change text in a paragraph There's a particular paragraph in my document and I want to replace its content completely with something else programatically. Is there any function

@Cooney243

Posted in: #AdobeIndesign #IndesignScripting #Text

There's a particular paragraph in my document and I want to replace its content completely with something else programatically. Is there any function to do this? I need something like this:


app.activeDocument.stories[7].paragraphs[0]. = "blah blah
blah";


where <function> is the function that would allow you to replace the content of the paragraph in question to "blah blah blah." I bet this is possible but am not aware of the functions available.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney243

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody3331749

it should be like this:

app.activeDocument.stories[7].paragraphs[0].contents = "blah blah blahr";


See yearbookmachine.github.io/esdocs/#/InDesign/Paragraph/contents.
The r creates a had linebreak. For a soft linebreak use n

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme