is it possible to add a word at the end of a line?

Hi, I'm looking for a way to automatically add a word at the end of a certain style of paragraphs?

is it possible to do it using a script?

I'm script, but if someone could find me a way to do this would be really appreciated.

Here is an example of what I need to do:

I have the X paragraph style in a document of current book, and I need to edit the book and add the source of the copyright at the end of each line that has X style him

so I need something that wonder

  1. the targeted paragraph style
  2. What word I want to add to it and then apply it rigorous document.

Thanks in advance

You don't need a script for this, you can use a Grep search/replace.

Search: (.) $

and set your paragraph style in the format of find

Change: $1XYZ

where XYZ is the text you want to insert.

Peter

Tags: InDesign

Similar Questions

  • You attempt to add a word at the end of a link tag to the site level

    I try to add a word before closing qoute in all links to the site level. Any way to do it without each link on all pages separately?

    I tested on a single page, so I'm confident, that it will do what you want, but before you continue, you must make a backup of your site in case something goes wrong.

    1. Open the find and Replace dialog box (Edit menu or Ctrl + F / Cmd + F).
    2. The value "search in", "current Document".
    3. The value of "seeking to"Source Code".
    4. In the 'Search' field, add the following regular expression:
      (
    5. In the field "Replace" add the following line (replace "NewText" with the text you want to add to each link):
      $1new_text$2
      
    6. Select the checkbox "use regular expression.
    7. Test that it works by clicking on find followed next to replace.
    8. If you are happy that it works as expected, change ' search in ' to "Entire current Local Site" and click "replace all".

    Dreamweaver warns you that you cannot undo the changes in pages that are not currently open. If you are satisfied, click OK, and the change will be at all the links.

  • Is it possible to remove hyphens at the end of a line separating the parts of a Word? Thank you

    Hello

    I was wondering, Indesign automatically add hyphens at the end of a line to reach a part of the word with the next part (on the next line). Is it possible to get rid of it in my entire document so that indesign automatically updates the word on the next line instead of separating them by a dash? I was passing by it manually and fix but it takes many hours.

    Let me know if it is not clear what I'm saying

    Thank you very much

    LegitNZ wrote:

    I was passing by it manually and fix, but it takes a lot of hours

    Ouch!  What you need to do is turn "caesura".  Select all of your text and drag it in the control panel command like this:

    You can also disable it before starting in the paragraph Panel, or turning it took off without documentation open to default.

  • How can I add a Word to the lexicon? that is, how to stop my e-mail name AutoCorrect?

    How can I add a Word to the lexicon? that is, how to stop my e-mail name AutoCorrect?

    Greetings bonbog,

    You can add words to the spelling on your Mac dictionary. See this help page - check spelling and Grammar - Help Mac

    Specifically -.

    • Add words to the spelling dictionary: Control-click on a Word, then choose memorize spelling. The Word will not be marked as spelled in any document. To have the word marked as wrong spelled once again, the control key in a document, then choose unlearn spelling.

    Thank you for using communities of Apple Support.

    Be well.

  • Is it possible to add an EventListener to the window of the Illustrator?

    I'm trying to access an interactive palette that updates according to art selected in illustrator.  Is it possible to add an EventListener to the window of the Illustrator who could capture a change of selection and update the Panel? If this is not possible, anyone has a work around for this?

    Thanks in advance.

    the script user interface palette cannot listen for events from the Illustrator, only to events in his own window/palette.

    the solution is to use BridgeTalk for your range speak to the cartoonist and Illustrator meet your palette... but even in this case, may not be automatic, he needs a man to open the dialog box.

    look at the documentation or search the Forum, you'll find plenty of samples.

  • Is it possible to add thumbnails to display the list of the new model?

    Is it possible to add thumbnails to display the list of the new model?

    Not with the News Module. You have an account that has access to the web apps?

  • How to add a column at the end of the table of the already designed the document... ?

    Hello

    I am writing a javascript to add a column at the end of the table in the Indesign document. using our plug-in, we have created the Indesign document.

    Each table I want to add an extra column at the end. Is it possible... ? Please help me if anyone has the idea in this regard.

    Thank you

    Vimala L

    Hi Vimala,

    Please try the JS code below, copy the following code will add the new column in each table last column after.

    var myTable = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    
    for(i=0; i
    

    THX,

    csm_phil

  • How can I add a response at the end of each point of the issue in a list of questions and send back to the sender?

    I have emails that require some points to address such as "Please fix leak in the bathroom sink' and then the next line will be another application and so on. I would like to answer each question at the end of each line with a response (preferably in a different color to stand out police) such as "Yes - will fix" or "that cannot be done" or "you'll have to fix that yourself." So, I want to send this reply to the original sender.

    It is probably easiest to copy and paste the initial list of questions in your answer, first of all and then add your comments.

    If you have the problem that the list numbers change when you try to add your comment about a new line, try to make your line breaks using shift + enter instead of the entry.

  • I am maing a movie with windows movie maker and you cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    ===============================
    If a music file Movie Maker crashes
    in a format that is not compatible. If you convert
    the file to the format of .wma before importing, you
    can have a better result.

    The converter below might be helpful to try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.pcfreetime.com/
    (FWIW... you can uncheck
    all the boxes on the last screen)

    After downloading and installing Format Factory...
    Open the program and choose an output folder...
    (this is where you will find your files when they are
    converted)

    Drag and drop your audio clips on the main screen...

    Select "while"WMA"/ OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck.
    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to add a tail to the end of a text in photoshop?

    How to add a tail to the end of a text in photoshop?

    I tested the police (from dafont.com) in the real Photoshop on a Windows 7/32 bit computer.

    It is all ok.

    Fenja

  • clicking CTRL + L or CRTL + are the cursor jumps to the beginning or the end of a line vs the next word or previous/tag

    I upgraded to CS 5.5 and code view when I click CTRL + L or CRTL + are the cursor jumps to the beginning or the end of a line (respectively) rather than jumping to the beginning or the end of the word/tag next to it.

    Someone knows how to fix this?  TIA, gwc

    You can change the keyboard shortcuts...

    Go to Edition > keyboard shortcuts

    Click on define duplicate

    Save with a name of your choice

    Under orders from drop down choose Code editing
    You can change all the keyboard shortcuts here to what you prefer

    With my default 2015 install, Ctrl + R doesn't do anything and Ctrl + L tries to link a file to what I chose in Code or design view

  • How to add a swoosh at the end of one letter of text?

    Hi, I use a nice font, frosting for breakfast and I am trying to add a swoosh at the end of this one.  I'd appreciate any help, thank you.

    PS I tried to delete anchor points and adding them but to no avail, except a mess.

    Screen Shot 2015-10-12 at 5.07.45 pm.pngScreen Shot 2015-10-12 at 5.07.19 pm.png

    Amanda,

    As I (put) understand, it becomes clear and sweet, you can (lock a copy of the original in place letter so that you can compare), smart guides are your friends:

    (1) for each of the segments of the path side closest to the end corner Anchor Points, click with the direct Selection tool to see the handles, then with the line Segment tool ClickDrag of the handle of the mooring Point (Smart Guides say Manage and anchor when you are away from the alignment), and then give the new line, a thin related (so you can see) and no fill;

    (2) deselect, then to the side you want to start, with the ClickDrag of (normal) selection tool the new line 1) from the end of the handle (anchor Point) to align on the anchor corner of the letter;

    (3) to lock the two new lines;

    (4) to the side you want to start, with the pen tool ClickDrag from the Point of departure angle of the letter to the opposite end of the anchor of the new line anchor (Smart Guides say anchor when you are away from the alignment), and then draw the swoosh, as you would normally, then finally the anchoring of end corner of the letter ClickDrag the opposite end anchor of the new line;

    (5) with the (normal) selection tool, select the swoosh and the letter and Pathfinder > unite;

    (6) unlock and remove (or hide) the new lines of 1).

    That should give you accurate and smooth transitions at the end of the letter. You can remove whataver is not necessary when it is convenient.

    Edit: Hi Sam. We are here today. Clouds and chilly wind.

  • How to add a string to the end TLFTextField without losing the current text format!

    • I have a TLFTextField which loads the text of the external text file.
    • Then a function changes the format of certain parts.
    • Then, as soon as I add a string to the end my TLFTextField, all previous formatting is lost!

    I use this code to add the string:

    • myTLF.text += ".";

    or

    • myTLFText.text = myTLFText.text.concat(".");

    Should I use another method?

    Sample.png


    pass again the text through your function put shaped, or try appendText:

    • myTLF.appendText(".");
  • GREP to add a newline at the end of the paragraph

    The following search adds a return at the beginning of a paragraph


    To find

    ^.


    Replace:

    ~ b$ 0



    Now I want instad add a newline at the end of the paragraph, instead, so I changed my search criteria as shown below, but never return transport. How can I add a newline at the end of a pararagh?


    To find

    \z


    Replace:

    ~ b


    To find. $

    Change to $0

    But WHY do you want to add a bunch of empty paragraphs?

  • How can I add a form at the end of the video.

    I am trying to add a form at the end of the video. I guess it would be quite simple with flash/AS, but I'm not very used to it.  Can someone point me in the right direction.  I have some flash and AS experience, so I should be able to handle it.  But I'd like a quick tutorial to point me in the right direction.

    Thank you

    Start with the first step: create a fla, add a flvplayback component and set its source to point to your flv/f4v.  Once you have your video game, you can check the flvplayback class in the help files and see how to apply a complete event to trigger your form to appear.  and finally, you can check some tutorials on how to manage data in flash form.

Maybe you are looking for