Add the tab character before the content of particular paragraph style

I have to add the tab character before the content of particular paragraph style

app.findTextPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.item ("IDX2");

list = app.activeDocument.findText ();

// 2. For each found the point...

for (i = 0; i < list.length; i ++)

{

App.Select (list [i])

App.Selection[0].insertionPoints[0].contents="\t".

}

But the code above only works in the first instance. But I must add the tab character all the content of the paragraph applied

How to do this

Hello

Another way without GREP...

var doc = app.activeDocument;
var myStories=doc.stories;
var J= myStories.length;

while( J-- ){
    var mStorie = myStories[J];
    var K= mStorie.paragraphs.length
    while( K-- ){
        if  (mStorie.paragraphs[K].appliedParagraphStyle.name == "toto") {
            mStorie.paragraphs[K].contents= "\t" + mStorie.paragraphs[K].contents;
        }
     }
}

Tags: InDesign

Similar Questions

  • Add the contents of a file to another

    How can I add the content of an Indesign file to the contents of another file. I want to transfer one single file at the end of another.

    I tried to place but that just seems to integrate the file into a blok.

    Use the Pages panel - and with the two files open, choose move Pages and then in the dialog box select the document that you want to move the pages to.

  • How to insert bullets in the middle of a paragraph style?

    For my business, I create auto-generated CVs. Due to the limitations of the program used to automatically generate the CV, I can only use a paragraph style nested throughout the entire document. That's what I would like to a paragraph style to look like:

    COMMERCIAL:

    Clinic OVO, Montreal (Quebec)

    • Renovation of the clinic, 2008

    Role: Project Manager

    Merck, Kirkland (Quebec)

    • Building 5, 7 & 8 - existing office renovation & expansion, 20 04

    • Building 18 - new building project, 2001

    Role: Project Manager

    I know how to insert a hyphen at the beginning of a paragraph style, but how indicate I want chips to start on the 3rd line of the paragraph and stop 2-the last line of the paragraph?

    You will need to enter manually. Styles cannot add text, only format.

    Automated bullets are only accessible to the general public for the start of a paragraph and cannot apply to the middle. You can use find/replace to add, possibly, but it doesn't look like me you have a model that is sufficiently well defined to do any sort of work of automation.

  • Change the Format of a paragraph Style Figure

    I work in Adobe InDesign 6.0 (PC) on a Dell laptop.

    I copied the text from a file and placed it in another file. Unfortunately, the figure numbers all State the former chapter number (in this instance, "6-#" as 6-1, 6-2, etc.). What I want to do is for the numbers to tell 8-1, 8-2, etc., because they are now in Chapter 8.

    I found this much: according to the style of paragraph to these figures, I right-click and select 'change {paragraph Style name} '. Ok. Then in the window that opens, 'Paragraph Style Options', select "Bullets and numbers" in the left menu. Ok.

    Now, here's my problem. I believe that the key to the entire mystery to be included in the section entitled "Style numbering." Yet, I can not Flip off the fields presented here. They include:

    Format: I guess that's the numbering style I want. Currently it says «1, 2, 3, 4...» I left that alone.

    Number: This field contains "Figure ^.» ^ H ^ = ^ # ». What is with the 'H' and all the symbols of hat and all that? What do I need to let him say so that my numbers read "Figure 8-1", "Figure 8-2" and so on? . "

    Style of characters: What am I doing here?

    Mode: What am I doing here?

    Any help would be sincerely appreciated!

    -Shadow

    "What am I doing here?"

    Visit the help, for example. In the list of topics on http://help.adobe.com/en_US/InDesign/6.0/WSa285fff53dea4f8617383751001ea8cb3f-6da6a.html , I see all your problems listed as subpoints.

    (How I did not know where to find the page? Google "indesign cs4 numbering style" and, thus, it was the first hit. And the next hit points to the book Type Real World Adobe InDesign CS4 , I bet it is also a good resource.)

  • Gallery Android adds the contents of DPS

    Hi all!

    Almost all Android devices contain application integrated Gallery, which shows all the photos on a device. This app automatically analyze all files on a device and the DPS content folder as well. Thus, the Gallery fills with a content of folio - page previews, buttons etc. The user must manually delete everything after each download of folio. My users have reported to me on this problem with HTC, I approved this Asus device. There is a solution to prevent the automatic scanning app Gallery: add empty file named in the root of the folder .nomedia. Can you please add this, or some other solution in the future version of DPS, to prevent automated filling Gallery Android?

    Hi Andrey,

    We save our files in app data storage directory and this directory already has a file ".nomedia" in what is supposed to indicate to other applications that the content inside is not media and should not be indexed (see multimedia http://androinica.com/2009/08/how-to-hide-non-music-audio-files-from-appearing-in-android--lecteurs / for an example).

    It seems some app is to ignore this ".nomedia" information and indexing of the data anyway.

  • Table of contents for the edition of ePub paragraph style

    I am trying to figure if InDesign can allow us to the editor the dynamic table of contents. What we have is essentially the following:

    Chapter number (single paragraph style)

    Chapter title (single paragraph style)

    First paragraph (single paragraph style)

    We want that the ToC that gets pulled up in an eBook reader to show this:

    Chapter 1: Chapter title

    Chapter 2: Chapter title

    At present, only InDesign appears to export each as a specific paragraph style, without setting them on the same line side by side. We're stuck with:

    Chapter 1

    Chapter title

    Chapter 2

    Chapter title

    Does anyone know of a way to export the ePub is what we want rather than this broken hirarchically way?

    There is no good way to do it. We must either go to the ePub after export, or change the style, so there's a return between the chapter number and chapter title instead of a return. The second option will involve completely restyling, and get in there colon will be delicate.

  • In the library grayed out paragraph styles

    I have a few paragraph styles in my library that have been created in Illustrator. In Photoshop, they are grayed out and cannot be applied.

    How can I get these styles of the library to work in Photoshop?

    styles.gif

    Paragraph styles are simply not one of the types of library that supports Photoshop. Note the bottom of the library panel in Photoshop and Illustrator, you will see a different set of icons representing the types of items that you can add to the library from a document (and so who can be added in a document).

    For Photoshop, these are:

    Graphics, Style of character, layer Style, and foreground color.

    (See: cloud creative libraries in Photoshop)

    For Illustrator, these are:

    Graphics, paragraph Style, character Style, and foreground color.

    (See: creative - cloud libraries how collaborate, synchronize and share the assets of the Illustrator)

  • absent the palette keyboard shortcuts paragraph styles

    I've upgraded to versions 2015 of my CC apps a few weeks ago. Everything seems to work fine, but keyboard shortcuts, I create paragraph styles do not appear in the palette as they did. Shortcuts in the palette show styles of character only. I don't see any option to show or hide shortcuts. Any way to turn them on in the palette paragraph styles?

    Try to screw up your prefs see replace your preferences

  • Table of content not applying paragraph styles do not

    Hello

    Intensely frustrated, but assuming that I have do just something stupid I can't understand.  I use CS4.

    Try to make a table of contents.  Everything will import correctly in the table of contents - I because of paragraph styles to the different levels, I've wanted to, etc., including some of the hidden layers.  All these import correctly.

    I did the paragraph styles for the real KNOCK out and filled in the box for each to apply to the specifc level.  The basic indentation formatting etc. I am applying work, but features and the font size will not change.

    When I look at each paragraph style, everything entered in the way that I want it to be (that is, text formatting, etc.).  I can go to my OCD manually and click on the section of text and apply the style to the paragraph I want and apply the recesses, etc., but the formatting of the text is not.  I have to go to character styles to make it work.

    If I go into another section of my document, apply that same paragraph text style, then all (characteristics of fonts & renfonçait changes etc.).

    Looks like you can have styles of characters applied to text in the document itself, and these character styles are preserved. Local formatting and character styles applied in the paragraphs are retained when you make the table of contents.

    Many users doesn't seem to understand the distinction between character and paragraph styles, too and using character styles incorrectly. I'm not saying that it's true for you, necessarily, but you should undersand this character styles are used to change the font attributes for bit isolated from the text in a paragraph. The basis for the type specification is part of the paragraph style, and there should be no reason to apply a style of character with the exception of special cases - some words or characters - in the paragraph. Text most will have no style applied character.

  • How can I find character applied to a particular paragraph styles

    I have to loop through the paragraphs in my InDesign document and for each of them, to see what character styles are applied in the paragraph. For a given paragraph, how can I find the character applied to the paragraph styles? Thank you very much.

    Rick Quatro

    Hmmm, not-so-easy. Thinking out loud:

    All objects of 'Text' generally have a "appliedCharacterStyle" property, but curious to this (and all other properties) when there is a multiple applied to the element that you are curious - in your case, according to paragraph - will lead to is a (null) or just pop up an error message.

    Try a loop on his TextStyleRanges. It has a few drawbacks: first, you will visit each kind of substitution, regardless of how it is applied. and secondly, I believe that this property in its current incarnation is suffering from a bug tiny weeny, eeny, where the final text style range will be happily 'leave' the current paragraph and continue in the following, if formatting is unchanged.

    I have to try to be sure, but I think that even a completely empty character style will be reported as a separate 'Beach'. But note that the reverse is not true: not all distinct ranges is a style of its own character. any manual formatting within a text character style will appear to "split" the character style range in two or more parts.

  • It is possible to refresh the bound text without paragraph styles?

    I know there are a quite similar, unanswered question. - But I need set the style for a text box.

    I had the word formats changed in my indesign formats easily.

    But when the palette of links and the record edition of the original document it back after removal simply a letter Indesign uses the word formats.

    Tried the options link without success.

    User error or a bug?

    Straight, after re - link a word document once (except the links palette) refresh does what it is supposed to do.

    After that he don't change not styles of paragraph any more.

    In my opinion, this behavior is not as unwilling. It is a Bug.

    (work with CS6, maybe it is in any case resolved to CC)

  • Script to change the language to all paragraph Styles?

    Y at - it a script out there that will change the language of all styles in a document? I often need to take English files US with several styles files and convert them to the English and French Canada. Find/replace language does well enough for occasional use but I would like to clean up the files I want for later use without going through each style and an era.

    -Thanks!

    Compiling and recording it in the AppleScript editor are?

    Here is a version compiled for the French:

    http://www.zenodesign.com/Forum/AllFrench.zip

    Copy it into your scripts folder

  • The position of a paragraph style

    Hello
    I have a paragraph of text within a div of CS style if I want to "BOLD" topic, stressed and red, I've highlight it and change its properties, which, I believe, and then creates a style.
    I have a good way to do this or is there a method more profficient.
    Carlo

    It's a Bonnie you nailed
    Thank you
    Carlo

  • Grep to add the tab character after the first character?

    Hello

    GREP assistants are able to help with a question?

    I am trying to add a tab character after the first character in line in a paragraph style. So, for example, I would like to a tab after the I, D, O and N in the following poem...

    Can Wincy spider climbed up the spout
    Down came the rain and swept away the spider
    Is out the Sun and dried up all the rain
    Now can Wincy spider went up the spout again


    Thank you!

    To find

    ^ \w

    Implement

    $0\t

  • tab character to the left of the number of auto

    I have InDesign CS4 documents with lists numbered in various places in the documents. I was numbering them manually because I can't find a way to insert a tab character before an AutoNumber. The bullets and the dialog box numbering doesn't let me insert a tab at the beginning of the number of auto - gives an error message. The reason for the tab before the number is that the numbers will line up at the moment where there are 10 or more items in the list.

    Jay,

    You don't need to insert tabs, put you everything in the section 'Bullet and Position of the number' balls - and - Numbering tab. These work values for 10 points lackey:

    Alignment: right
    Withdrawal left: 6 pt
    First line indent 6 pt
    Tab position: 18 pt

    Peter

Maybe you are looking for

  • P200-rt7 but Win XP Setup cannot find hard drive

    Hi, try to install xp on my Toshiba p200-rt7 and xp says it cannot find my hard drive. If I launch the install of vista dvd he finds it so I think I need to hit F6 during the xp installation and select "third-party drivers? If Yes, where can I get th

  • Presario SR5152NX: Looking for AMD Motherboar d update of the BIOS for Presario SR5152NX

    I got the BIOS file for the update. However, the installation does not work on Windows 10. He is looking for Vista. Is there a way to delete the image file, so I can update BACK?

  • Photos for Mac user tips

    The new provision of the communities came out, but usage tips appear still to be hidden: Use the display of the content to access: Photos for Mac

  • Are there drivers available for Sat - Pro A300s this channel to use 12 & 13?

    We use Windows XP SP2 & SP3. The A300 that I use has a RealTek 8187 B wireless card. Our Organization has a number of Satellite Pro A200, A300, laptops computers L300. We have identified that there is a scouce of interference (we are unable to find t

  • iPhone more 6s in Lion 10.7.5

    November 25, 2016, I plugged iPhone 6 s more in my MacBook Pro OS X 10.7.5 and did not have a new folder 'privacy' has been created. I thought I had a virus. I deleted everything I couldn't recognize and run check disk permissions repaired several ti