To anchor a line into a praragraph one would CUT it, then select the the Type Tool and then click in the position of the text where they want the line to appear and paste.
Is following those steps one way to go about anchoring a line into a paragrah via a script?
Something like below??
"my text here " + paste(myGraphicLine) + "the rest of my text here."
I have a handful of different lines that need to be anchored into the same paragraph via a script.
You can select a line and then run a script to do something with it, but how would a script know where in your text to paste the line? You cannot select a line and "then" point somewhere inside the text where it should be pasted -- if you do that you might as well directly cut-and-paste manually.
I was hoping to find out that their was some function that I could place like
myTextFrame.contents= "this line looks like " + anchorHere(app.paste(myLine) + "some more text";
I'll check out the recompose and all that good stuff.
Europe, Middle East and Africa