Add glyph at end of story...

Hi,
trying to do a find/ change where I need to add a glyph to the end of a story. I have a bunch of titles in their own text frame which also have their own paragraph style and I want to add a right indent tab, then a glyph after the last word in that title.
Can anyone help me with the grep expression?
Thanks,

You spotted an 'error' (some might call it a vaguery) in the grep search&replace. ID won't allow 'replacing' a
i position marker
with anything. So you can't, for example, add something at the start of each paragraph using just "^" in Search.
This goes for all positions -- '^' and '$' (start and end of para) and '\A' and '\Z' (start & end of story); probably for the others as well (start/end of word? likely).
That said, a better search & replace is the following:
Find: .\Z
Replace: $0~y>
.. so the Find text will find
i any
character (the '\w' only specifies alphanumerics). The $0 in the Replace is a tiny refinement: because you 'use' your entire Found text -- the '\Z' is discarded --, you don't have to use parentheses and can use '$0' in the Replace, meaning "the entire Found text".

Similar Messages

  • GREP to Find Numbers at End of Story

    I want use GREP to do a find to locate any six digit number or just the numeral zero at the end of each story in my InDesign 4 documents.
    So far, I have ben able io identify six digit numbers by searching for the following \d{6} But when I add the end of story location marker,  \z\d{6}, no results are returned.
    What do I need to do to:
    1. get the expression to search for the number at the end of the story
    2. amend my expression so that it finds either a six digit number or the numeral zero
    Any help on this would be appreciated

    kmc27 wrote:
    In the InDesign document here isn't the six digit number in the first example and the zero in the second example at the end of the story? Wouldn't \z find these numbers?
    No, to both questions.
    \Z is a location marker, and it only matches the position "end of story". You have a hard return between the digits and the location 'end of story'.
    This will work in your example document:
    (\d{6}|0)\r\Z
    and it would be wise, in your case, to mark the hard returns as 'optional':
    (\d{6}|0)\r*\Z

  • How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?

    Hi there,
    How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?
    It is not convenient to remove it every time I sign a document. So, is there a way to turn this off?
    Thank you

    I think you cannot, because for many people it is so important to keep the unsigned document, and most do not realise this until it is too late.

  • Search for end-of-paragraph before end of story? CS6

    Hi,
    Does anybody know of a way to search for a paragraph mark directly
    before an end of story marker? I'd like to get rid of them, e.g., in
    footnotes, where the last paragraph mark causes an unnecessary blank line.
    Thanks,
    Ariel

    I found \z on Mike Witherell's great little chart at http://www.jetsetcom.net/useful-resources/indesign-cs6-resources.html
    End of paragraph, at least in GREP is a location, not a character (the metacharacter is $) and can't be selected or replaced. Every paragraph has one. Paragraphs before the end of story also have a paragaph break, and that's what you are trying to remove at the end of your footnote story.
    @David, Why bother withthe lookahead? \z is the location, so I would presume that the search would start at the end of story and look at the last character. That has to be faster than parsing every break in the paragraph to check for the end of story location after, and there's no possibility that you will actually delete the EOS since it can't actually be selected.

  • Find / Change Replace "End of story" by Paragraph

    Hi tehre,
    I tried unsuccessfully to find out how to manage to put a paragraph to the end of story to the multiple textframes automatically. There must be some way! Am I right?
    Thank you!

    Hi Scott,
    See the IMG please to understand me more:
    Each textframe  has the "#" hidden character on the very end. I want to put there a paragraph to the very end of each textframe I selected. I imagined something like this:
    Open "Find / Change" dialog box
    Find the "#" {End of Story}
    And replace it by "¶ #" {Put the paragraph before the very End of Story}
    I am merging multiple textframes, copy them and put the text to the different indd document. But if there is not a paragraph on the end of the textframes which I am merging, all the text joins together and I have to put paragraphs manually there afterwards. {I am merging 4 textframes into one, so i have to put there at least 3 paragraphs. I have 350 items, which means about thousand paragraphs together to be put manually.}
    Runnig ID CS6.
    Thank you!

  • How to add two zeros end of field

    how to add two zeros end of field?

    Hi srinu,
    If it's a number field, then just multiply by 100.
    If it's a string, then just use CONCATENATE and add the '00' to your existing string.
    Hope this helps.
    SL

  • [Solved] How to: Automatically add Semicolons at end of line

    Q. Is it possible to set JDeveloper to automatically add Semicolons to the end of a line of code?
    A. "While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon." [Solved] How to: Automatically add Semicolons at end of line
    Original Message:
    I'm spoiled from using Basic and similar programming languages, adding semicolons manually is something that'll take me time to get used to
    Thanks in advance,
    Abdulla
    Tags (for search engines):
    Jdeveloper automatic semicolon
    Message was edited by:
    Abdulla

    While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon.

  • Add empty return at end of story

    Hi experts
    How can make a script for add some empty return at end of sotry, not matter the end is a table without any return?
    Thanks
    Regard
    John

    Thank you Chinna
    thank you so much
    this script as below function for remove empty column, but in active doc
    now I only need it work in selection[0]
    could you please help me change it only work in app.selection[0]?
    myDoc = app.activeDocument;
    findTable();
    function findTable(){
    for ( s = myDoc.stories.length-1; s >= 0; s-- ){
      for ( t = myDoc.stories[s].tables.length-1; t >= 0; t-- ){
       myTable = myDoc.stories[s].tables[t];
       removeCurrentColumn();
    function removeCurrentColumn(){
    for ( i = myTable.columns.length-1; i >= 0; i-- ){
       if (currentColumnIsEmpty(i) == true){
       myTable.columns[i].remove();
    function currentColumnIsEmpty(col){
        theColumnIsEmpty = true;
    for ( k = myTable.rows.length-1; k >= 0; k-- ){
      if (myTable.cells.item(col + ":" + k).texts[0].contents != ""){
       theColumnIsEmpty = false;
      return theColumnIsEmpty;
    function findTableDel(){
    if (myDoc.stories.everyItem().tables.length > 0) {
      myAllTables = myDoc.stories.everyItem().tables.everyItem();
      for ( s = myAllTables.length-1; s >= 0; s-- ){
       myTable = myAllTables.item[s];
       removeCurrentColumn(myAllTables[s]);
    Thank you
    Regard
    John

  • Mac OS X 10.7 drivers for HP LaserJet 1300: installation at the "Add Printer" process ended, every time, with message "Currently drivers for this printer are UNavailable..."!   PLEASE HELP?

    APPLE [see Apple Support's Article HT 3669] says Mac OS X 10.7 (Lion) has drivers for this Printer. 
    But, every time I've tried installing it to my Mac Book Pro (which came with OS X 10.7), it does recognize that the Printer (connected via USB cable) is HP LaserJet 1300 -- in fact, right below, this statement appears: "The drivers for this Printer are available...".  But, when it comes to the actual process of downloading, the "Add Printer" window -- after 20+ minutes of its "searching" for the drivers -- always ends with the message: "Currently drivers for this printer are UNavailable... contact the manufacturer."!!!  (Can you imagine? Apple says it's available... but its own "Add Printer" process says it's UNavailable!)
    I went to HP's support site, and it, too, says that drivers for this Printer are available!  -- see the 2 links:
      http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01664444&lc=en&cc=us&dlc=en &product=4152639
      http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02915680&tmp_track_link=ot_ faqs/top_issues/en_us/c02915680/loc:4&cc=us&dlc=en&lc=en&product=4152639#N507
    Can somebody help me?  Would very much appreciate it.

    You haven't installed any of the Photoshop updates for CS5.
    Go download and install the updates.

  • Applescript to add numbers to end of folders names

    Hello,
    I wrote a script that can rename files and add sequential numbers to them (below):
    set theResult to display dialog "Please enter a name and a number separated by a space." default answer "enter image name here + space + 1" buttons {"Cancel", "OK"} default button 2 with icon 1
    set theText to text returned of theResult
    set theNumber to last word of theText
    set theOffset to offset of theNumber in theText
    set theName to text 1 through (theOffset - 2) of theText
    set k to theNumber as integer
    global theMaximumLength
    tell application "Finder"
      set theFiles to files of front window
      set theMaximumLength to length of (k - 1 + (count theFiles) as text)
      repeat with thisFile in theFiles
      set theExtension to name extension of thisFile
      set theNumber to my addZeros(k as text)
      set the name of thisFile to theName & "_" & theNumber & "." & theExtension
      set k to k + 1
      end repeat
    end tell
    But I want to write a script that will JUST add and _1 to the end of multiple folders.  In other words, take a bunch of folders already created like
    342392501
    342392401
    340766601
    340766201
    339898101
    339828301
    339171301
    337245001
    337086803
    337086802
    337086801
    and add _1 to all of them.  BUT what would be even better would be a script that would duplicate each folder and ad an _1 to the original and then an _2 to the duplicate, and do that for all the folders in the finder.
    Anyone?  Thanks so much!!!!

    Use code such as the following:
    set the_list to "80
    81
    82"
    tell application "Finder"
    set target_folder to (choose folder)
    repeat with this_number in paragraphs of the_list
    set this_folder to (make new folder in target_folder with properties {name:this_number})
    set name of (duplicate this_folder) to name of this_folder & "_2"
    set name of this_folder to name of this_folder & "_1"
    end repeat
    end tell
    Or to save a step if the creation dates don't need to match exactly:
    set the_list to "80
    81
    82"
    tell application "Finder"
    set target_folder to (choose folder)
    repeat with this_number in paragraphs of the_list
    set this_folder to (make new folder in target_folder with properties {name:this_number & "_1"})
    set this_folder to (make new folder in target_folder with properties {name:this_number & "_2"})
    end repeat
    end tell
    (110675)

  • AppleScript "Add to File Names.scpt" (in Finder Scripts) adds "Prefix" to end of files rather than adding actual prefix?

    This may be a quirk with my setup, but when the file "Add to File Names.scpt" runs in Mavericks "Prefix" is appended to the end of filenames rather than the term I would like to be added as a prefix...unsure if this can be reproduced on other comptuers? Similarly, as a test, if a term is intended to be added as a suffix to a file name then "Suffix" is appended to the end of a file name - rather than the term.
    If this is a bug is there a fix?
    Thanks

    apparently this is a bug with a workaround as described here:
    https://discussions.apple.com/message/24085265#24085265

  • Cant add to the end of the array list

    Hey everyone
             for(String word : dictionary){
                 if(word.equalsIgnoreCase(newWord) == false && word.compareToIgnoreCase(newWord) >= 0){
                     dictionary.add(dictionary.indexOf(word), newWord);
                     save();
                     break;
        }i am struggling to see the bug in my code, why will it not allow me to enter anything to the end of the array list, but anywehere other is fine?
    thanks very much

    Try posting a SSCCEE. Your code could be better written:
    1. You are using the enhanced for loop, then you have to turn around and use indexOf to see where you are in the list. Think about that.
    2. Are you sure you have to use both equalsIgnoreCase and compareIgnoreCase to get the result you need?

  • Place glyph at end of paragraph?

    I am putting together a cookbook. I'd like to put a glyph at the end of the last sentence for each recipe. (Basically, the final instruction.)
    Is it possible to create a paragraph format that includes a glyph at the end? Or would I need to rely on GREP to search for the end of the last paragraph for each recipe, then insert the desired character?
    If the answer is GREP, since it has been donkey's ages since I last used GREP regularly (and it wasn't in InDesign), is there a good resource for learning InDesign's GREP?
    Many thanks to this wonderful community! I always get swift, excellent answers.

    For the vast majority of the text, it already exists in FrameMaker 7.2. I am just porting it over to InDesign CS5. Since I am applying paragraph formats, I could, while in each recipe, go ahead and manually enter for the last paragraph for each recipe, but then if I am manually entering something, I might as well manually enter the glyph. I was hoping to avoid manual work as much as possible. :-)
    I will experiment and report back. I may decide not to do the glyph, since I already have several other design elements for each recipe and I don't want the pages to look too busy. The end of one recipe and the start of the next is quite obvious anyway from the formatting of the recipe title paragraph.
    Thank you both so much for your help!

  • [CS5][JS] Add Glyph for special 'e' characters?

    Hello,
    I've got an InDesign script that adds text to a text frame like so:
    myTextFrame.insertionPoints[-1].contents = ' The café...';
    The problem is that InDesign renders the acute accent 'e' character incorrectly and inserts other special characters. I think I should be able to use glyphs, but I'm not sure how to do it within a script? Is there an easy way to insert that glyph character?
    Many thanks in advance!
    -Lloyd

    Hi,
    As John suggested, it is almost certainly a character encoding issue at script-editing level. I have similar troubles when I deployed my first scripts for Mac + Win platforms—there was always users who got degenerate UTF8. Since I'm not an expert in cross-OS character encoding, I decided to never use non-ASCII characters in my script. This is a radical solution, I admit, but my scripts never more displayed weird © strings and so.
    Any Unicode string can be easily expressed in ASCII JavaScript using "\xHH" or "\uHHHH"—which is simpler than String.fromCharCode(0xHHHH).
    E.g.:
    myTextFrame.insertionPoints[-1].contents = "The caf\xE9...";
    Etc.
    @+
    Marc

  • How To Add Glyph to Character Style?

    Specifically, i want to add the "math x" as a Character Style. The font is Adobe Janson Pro, and the "glyph" (what we used to call a "character") is present. I could add by hand, but i have a lot of them. In the menus that define the character(s) you want to add, i can't find an option that will add a *specific* character-- in this case the math x. Or an accented character, for that matter (ü?)
    Thanks very much.

    Okay, I see. I tried one more thing -- since the Symbol character for the math x font is option-y (which is the "yen" symbol in most fonts) I tried having the Nested GREP apply a character style including the Symbol font to all option-Y characters -- but Indesign is too clever for that, and shows an empty box (since there's no Yen symbol in the Symbol font).
    I give up. Keep the "Glyphs" palette handy, and once you've entered one math x symbol, it will be on the "recently used glyphs" row, and you can enter them by double-clicking. Or, you can search for space-x-space and replace with space-math x-space where needed.
    Rodney

Maybe you are looking for

  • Contacts on Ipod but not on computer- what will Synchronizie do?

    Hello, awhile back my hardrive died but I had my music and contacts on my IPod. I transferred the music to my new computer no problem- but the Contact folder the process created is empty (it just has a sample Contact in it). ************ QUESTION ***

  • Computer crashed...can I download my music from my ipod to my computer?

    my computer crashed and all the music I had was erased but my ipod still has it. Is there a way I can download it from my ipod to the computer?

  • PC to Mac iTunes

    I just switched from PC to Mac, and the iTunes in Mac cannot read my library. What can I do???

  • Pdf attachment rejection

    I send pdf attachments to a insurance co. Lately, they just bounce back with a "attachment is an invalid format" message. Their tech support tells me that it is because I am sending from a Mac computer. I do have "windows friendly attachments" enable

  • Sales office, sales group language maintenance issue-urgent

    Hi All, I have to create sales office & sales group in the enterprise structure. But the problem is i want to maintain it in different languages such as russian & french, how do i do it. Is there any specific method to be used to convert language? Me