Skip navigation
Currently Being Moderated

Anchor Lines into a paragraph.

Apr 11, 2012 6:25 AM

Tags: #line #script #anchor #indesign

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??

 

cut(myGraphicLine)

 

"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.

 

 

 

Thank you.

 
Replies
  • Currently Being Moderated
    Apr 11, 2012 7:22 AM   in reply to pkrk

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 10:31 AM   in reply to pkrk

    There is (the equivalent of "app.paste(myLine)"), but again, how would the script know where to paste? After ANY text that goes like "this line looks like "?

     
    |
    Mark as:
  • John Hawkinson
    5,572 posts
    Jun 25, 2009
    Currently Being Moderated
    Apr 14, 2012 12:23 AM   in reply to pkrk

    Can't you just add it to an insertionPoint?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points