Is it possible to apply several styles of an entire text paragraph using GREP?

Hello.

I have a very complicated text, with a lot of formatting. It's a book liturgical altar, (Missal). He has a particular text for each day, it is in Latin and every paragraph, every day, as it's own particular formatting, including color in words, special characters, etc.. Very interesting work of InDesign. (Maybe I'll give more details later.)

GREP will make things much easier. But I was wondering if there is there any tool which allows to have a group of GREP querys and apply a different paragraph style to all matches in the text, ALL IN ONE tool. (I know the search/replace tool, but I was looking for something even better.)

It would be a great idea (I think) for future versions of InDesign, don't you think?

I have many more questions on this project, but I will try to research as much as possible without having to open new positions. More details to come later.

The can request handler that string together you a list of the various operations of fin/change GREP in a single operation, so you can set a query for each style, that you need, and then perform a single operation.

Tags: InDesign

Similar Questions

  • How to apply several styles of one-sentence paragraphs?

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    pchinique wrote:

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    As Diane King mentioned, nested character styles may work for your need. His example was an initial capital of fall (multiline first one or several letters of a paragraph.) Dropped caps are a particular type of nested style - always the very first one or more characters in a paragraph, high on two or more lines.

    To use the general type of nested style, you must be able to identify the words in the paragraph which gets the nested character style. For example, the third word, or the first two words after the first semicolon. If there is no model of Word (s) that can be identified by the post office or the sequence, it is possible that a GREP style can be used to find a common pattern of characters and apply a style of character to it, for example a phone number, the date, or the amount of currency that is identified by a dollar sign book, or yuan.

    Search Help for InDesign and Google "Style nested InDesign', 'InDesign grep Style' and similar (without the quotes) terms for more details. There has been many discussions of GREP on this forum.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

       
  • Create the style of the selected text paragraph?

    I am trying to create a paragraph style for the selected text in InDesign CS6 (Mac). There must be a simple command for this.

    For example, if I'm in the form of text which has no style paragraph and decide I want to save the formatting as a new style to apply it elsewhere, there is no command for 'create the new style of paragraph selected text'. The only option, seems, is to manually create a new paragraph style, click the style, which of course annihilates all the formatting desired, redo all the formitting (assuming a rememebers it), then right click on the paragraph style and hope that the option "Redefine a Style" is available (which is not often).

    Any guidance greatly appreciated.

    1 Select the text or keep blink, position the cursor on the text and the paragraph open style (press F11), on the paragraph style Panel, click the menu and choose new paragraph Style

    2. in this new paragraph Style dialog box, you can make your desire setting and check the box 'Apply the Style to selection'

    OR

    1. create your text of desire and click on this text created (or select the text) and click on create a new style button that is shown on the image

    2. When you click on create new style from the paragraph style list a paragraph style 1 is displayed but it will not be highlighted, it will highlight on the default style 'Standard paragraph', just click once on the style of paragraph 1 and double-click to rename.

    It will allow to keep the style of what you have created.

    Thank you

  • How is it possible to have several styles for one order

    Hello

    I have a CSS associated with my MXML file. Now, how can I connect all these things to my TextInput, for example by below, I can only assign police size, how do I connect all these styles at once to my TextInput


    < name mx:Label = 'User name' width = '80' x = '89' y = '80' text = "UserName" styleName = "p" >

    It's my external css file

    {.h1}
    font size: 24;
    }
    .p {}
    font size: 50;
    }
    .a {}
    text-decoration: underline;
    }
    {.a:hover}
    Color: #FF0000;
    }

    Thanks in advnace.

    Hello

    Try to combine your statements.

    {.newStyle}

    font size: 50;

       text-decoration: underline;
    }

  • It is possible to combine several PDF in a single pdf file using document cloud

    I would like to combine several PDF files, which are in the clouds of Document into a single PDF file. Is it possible to do in the DC, without first download the files on my desktop computer?

    Hi jay,

    You can do this online if you have the Acrobat DC tickets or you subscription to Adobe PDF pack https://cloud.acrobat.com/combinepdf . Is not possible within the application itself.

    Kind regards
    Nicos

  • How can you put several style of character class?

    @How you can put several style of character class?

    If I put: low magenta tooltip centre-left w150 slide down

    Adobe Muse done: Tooltip-magenta-bottom-left-center-w150-slide-down

    Can I apply several styles of character at a time?

    1 - tool - tip

    2 - magenta

    3 bottom

    4 left

    5 - Center

    6 - w150

    7 drag-down

    Not without coding, each time after Muse has updated the code of the web page...

  • Apply a style sheet for an entire project after importation

    Hello

    I was wondering if it is possible to apply a style sheet to a project after its importation of a Word to RoboHelp8 document.

    When I import a document into a project of RoboHelp8, it won't let me apply a stylesheet at this time, so I was wondering if it would be possible to apply the stylesheet desired to the whole of the project once the import process is completed.

    Thank you

    Bogdan

    Select all subjects in the list of topics, right-click for properties, and then select the style sheet in the appearance tab.

    Good luck

    Leon

  • Use Grep to add superscrpt style symbol character $

    I have a style of object which, among other things, apply a style of papragraph, in this paragraph style, I want to use GREP to find any instance of $, and apply a character style

    the problem I have is that it seems not recogize the symbol $

    In GREP, you must escape the symbol $ . Use: \$

    @+

    Marc

  • How to apply different styles to several spry accordion panels?

    Hi all

    I have a site I'm building that has several functions that spry accordion.

    I try to apply different styles to each accordion. A problem arises when I try to place an accordion in an another accordion.

    I have style two images of different background for both of the accordians for styles (AccordionPanelTab, AccordionPanelTabHover and AccordionPanelOpen AccordionPanelTabHover) that work very well.

    When I try and place an accordion in an another accordion background image for this Accordion for styles (AccordionPanelTab and AccordionPanelOpen AccordionPanelTabHover) has different style applied that I said in the accordion.css folder, however the style (AccordionPanelTabHover) has the same style as the accordion, it's breast, even if I said a background image in the accordion.css file different.

    I hope this makes sence, below is my source and the CSS Code.

    I appriciate any help that can be given to help solve this issue I'm running too.

    Source code

    < div id = "content" >

    < p > < span class = "first_header_word_packages" > welcome </span > < span class = "header_word_packages" > on our page of packages </span > < / p >

    < class p = "content_txt" > here you can build the package Web site that meets your needs while being able to determine the cost of your site without having to worry about the scary hidden costs at a later date. < /p >

    < class p = "content_txt" > we have two packages available for our clients; < /p >

    < div id = "Accordion1" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < div id = "Accordion2" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < / div > <! - end #Accordion2 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion2->

    < / div > <! - end #Accordion1 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion1->

    < div id = "Accordion3" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < div id = "Accordion4" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < / div > <! - end #Accordion4 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion4->

    < / div > <! - end #Accordion3 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion3->

    < / div > <!-end #content->

    CSS

    @charset "UTF-8";

    / * SpryAccordion.css - version 0.5 - Pre - Release Spry 1.6.1 * /.

    / * Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

    / * This is the selector for the main container of the accordion. For our style by default.

    * draw us left, right and bottom borders. The upper edge of the accordion

    * is made by the first AccordionPanelTab which never moves.

    *

    * If you want to limit the width of the Accordion widget, set a width

    * the accordion container. By default, our accordion expands horizontally to fill

    * a space available.

    *

    * The name of the class ("accordion") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style the

    * Accordion container.

    */

    . Accordion {}

    border-left: 1px solid gray;

    border-right: 1px solid black;

    border-bottom: 1px solid gray;

    overflow: hidden;

    }

    / * This is the selector for the AccordionPanel container which houses the

    * tab panel and panel content area. It is not make it visually, but we

    * ensure that it has zero margin and padding.

    *

    * The name of the class ("AccordionPanel") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style a

    the container of accordion panel.

    */

    . {AccordionPanel}

    margin: 0px;

    padding: 0px;

    }

    / * This is the selector for the AccordionPanelTab. This container houses

    the Panel personnel. It is also the container where the user clicks

    * to open a specific panel.

    *

    * The name of the class ("AccordionPanelTab") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style a

    the container of Accordion Panel tab.

    *

    * NOTE:

    * This rule uses the - moz-user-select and - khtml-user-select properties to prevent the

    * the user to select the text in the AccordionPanelTab. Here is the browser owner

    properties that only work in Mozilla browsers (such as FireFox) and KHTML

    * browsers (such as Safari), so they will not pass the W3C validation. If you want your documents to

    * validate and don't care if the user can select text in an AccordionPanelTab.

    * You can remove these properties without affecting the functionality of the widget.

    */

    . {AccordionPanelTab}

    background-color: #CCCCCC;

    border-top: 1px solid black;

    border-bottom: 1px solid gray;

    margin: 0px;

    padding: 2px;

    cursor: pointer;

    -moz-user-select: none;

    -khtml-user-select: none;

    }

    / * This is the selector for the content area of a Panel. It is important to note that

    * You should never put any padding on the content area of the group if you plan to

    * use the animations of accordion panel. Place padding non-zero on the content

    * area can cause accordion suddenly increase in height, while signs alive.

    *

    * Anyone who styles an accordion * MUST * specify a height on the Accordion Panel

    * Content container.

    *

    * The name of the class ("AccordionPanelContent") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style a

    the container of the accordion panel content.

    */

    . {AccordionPanelContent}

    overflow: auto;

    margin: 0px;

    padding: 0px;

    }

    / * This is an example of how to change the appearance of the tab of the Panel which is

    * currently open. The "AccordionPanelOpen" class is added and removed programmatically

    * to panels as long as the user clicks on the tabs in the accordion.

    */

    . AccordionPanelOpen. {AccordionPanelTab}

    background-color: #EEEEEE;

    }

    / * This is an example of how to change the appearance of the tab of the Panel as the

    * mouse passes over it. The "AccordionPanelTabHover" class is added programmatically

    * and removed containers tab panel as the mouse enters and leaves the tab container.

    */

    . {AccordionPanelTabHover}

    color: #555555;

    }

    . AccordionPanelOpen. {AccordionPanelTabHover}

    color: #555555;

    }

    / * This is an example of how to change the appearance of all the Panel tabs when the

    * Accordion has focus. The class "AccordionFocused" is programmatically added and removed

    * whenever the accordion wins or loses the keyboard focus.

    */

    . AccordionFocused. {AccordionPanelTab}

    background-color: #3399FF;

    }

    / * This is an example of how to change the appearance of the tab of the Panel which is

    * currently open when the accordion is in focus.

    */

    . AccordionFocused. AccordionPanelOpen. {AccordionPanelTab}

    background-color: #33CCFF;

    }

    / * Printing rules * /.

    @media print {}

    . Accordion {}

    overflow: visible! important;

    }

    . {AccordionPanelContent}

    display: block! important;

    overflow: visible! important;

    height: auto! important;

    }

    }

    #Accordion1. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg1.png) ;}

    #Accordion1. AccordionPanelTabHover,

    #Accordion1. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/package_spry_tab_bg1_RO.png) ;}

    #Accordion2. {AccordionPanelTab}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry1.png) ;}

    #Accordion2. AccordionPanelTabHover,

    #Accordion2. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/packages_spry1_ro.png) ;}

    #Accordion3. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg2.png) ;}

    #Accordion3. AccordionPanelTabHover,

    #Accordion3. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/package_spry_tab_bg2_RO.png) ;}

    #Accordion4. {AccordionPanelTab}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry2.png) ;}

    #Accordion4. AccordionPanelTabHover,

    #Accordion4. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/packages_spry2_ro.png) ;}


    Good guys.

    I thought about it, if someone had the same problem as me and a look at this thread for the answer, here it is.

    Firstly if you are wanting to separately style two or more Spry accordions that are not on the other example

    Label 1

    Insert content here

    Label 1

    Insert content here

    Do not do this, as long as you have separate ID's for the div (which dreamweaver automatically anyway), you will be fine.

    However if for some reason, you want to put one accordion inside another like I did for example

    Label 1

    Insert content here

    Label 1

    Insert content here

    Too style accordion 1 and 2 so their tabs have different origins and Hover background when the content panel is open and closed you need to style it in CSS that they follow the path;

    CSS

    #Accordion1. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg.png) ;}

    #Accordion1. AccordionPanelTabHover,

    #Accordion1. AccordionPanelOpen. {AccordionPanelTabHover}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg_RO.png) ;}

    #Accordion2. {AccordionPanelTab}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry.png) ;}

    #Accordion2. AccordionPanelClosed. AccordionPanelTabHover,

    #Accordion2. AccordionPanelOpen. {AccordionPanelTabHover}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry_ro.png) ;}

    Normally in styling two separate spry accordions, you can simply use the following code

    #Accordion1. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg.png) ;}

    #Accordion1. AccordionPanelTabHover,

    #Accordion1. AccordionPanelOpen. {AccordionPanelTabHover}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg_RO.png) ;}

    The only difference with the style one Spry Accordion in another so that they have different horizons stationary when the content panel is open and closed ".» AccordionPanelClosed ".

    Hope this has helped someone who had the same problem, I was.


  • Help: apply different styles of Pará to several consecutive paragraphs using the script

    Hi all

    I need to apply different styles of Pará to several consecutive paragraphs using the script, something like this (found somewhere on the net):

    myDoc = app.documents var [0];

    mySel var = app.selection [0];

    var myPStyle1 = "A";

    var myPStyle2 = 'B ';.

    you need to add 6 styles here:

    var myPStyle3 = 'C ';

    var myPStyle4 = "D";

    var myPStyle5 = 'E ';

    var myPStyle6 = 'F';

    var myPStyle7 = "G";

    var myPStyle8 = 'H ';

    the last style is not necessary in the script?

    apply style 1 paragraph 1

    mySel.appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle1);

    apply styles to the paragraphs after selection

    style 2

    mySel.paragraphs [-1] .insertionPoints [-1] .appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle2);

    next style

    mySel.paragraphs [-1] .insertionPoints [-1] .paragraphs [0] .insertionPoints [-1] .appliedParagrap hStyle = .nextStyle myDoc.paragraphStyles.item (myPStyle2);

    I tried a lot, but could not find the way to extend the sequence

    Sorry, no skills in the scripts still...

    all styles have "Next Style" option enabled, but I can't use ' apply style, then next style "or object styles, because I need four different sequences of these paragraph styles:

    A-B-C-D-E-F-G-H

    A-B-D-E-G-H

    A-C-D-F-G-H

    A-D-G-H

    and I don't really want to create special clones of the same style for each sequence (Keep It Simple, they say ).

    I think that this can be done through four slightly adjusted scripts...

    any suggestions would be greatly appreciated...

    Sorry to be late to the party, I usually take up such things immediately.

    How about this one?

    1. no separate necessary script, it uses a small dialog box where you can choose what style to use. If I'm not mistaken, you can press a digit key on Windows to immediately select one of the items.

    2. it works down in the paragraph in that your cursor is located. It has nothing to do with the blocks of text, even if - consecutive paragraphs within a story always ignore the text frames.

    3. extensible: you can easily change the names of the styles in the table at the top of the page and the number of groups of style in the list.

    var styleLists = [
              [ "A", "B", "C", "D", "E", "F", "G", "H" ],
              [ "A", "B", "D", "E", "G", "H" ],
              [ "A", "C", "D", "F", "G", "H" ],
              [ "A", "D", "G", "H" ]
    ];
    
    var radiobutts = [];
    
    styleDialog = app.dialogs.add ({name:"Set Multiple Styles",canCancel:true});
    with (styleDialog)
    {
              with (dialogColumns.add())
              {
                        with (radiobuttonGroups.add())
                        {
                                  for (i=0; i		   
  • Apply the style nested up to one of several characters

    I d-i-d try this old College, but maybe I don't know the right place or I am limited in nested Style in style GREP.

    I have a number any unpredictable predictable characters I want to apply a style CH "up to".

    Example 1: The Club of InDesign in the Future meeting, 15:30: here are some examples of text...  Here is some sample text...  Here are some examples of text--in this case, "up to" colon
    Example 2: The Club of InDesign in the Future meeting, 15:30 - here is an example of text...  Here is some sample text...  Here are some examples of text--in this case, "until" space hyphen

    Example 3: The Club of InDesign in the Future meeting, 15:30 - here is an example of text...  Here is some sample text...  Here are some examples of text--in this case, "until" space hyphen hyphen

    Example 4: The Club of InDesign in the Future meeting, 15:30, here is an example of text...  Here is some sample text...  Here is some example text--in this case, "up to" any character (comma) [of course, there is an argument in this one]

    There are 5-6. predictable samples.  But nested Styles stacked on each other tends to "BOLD" of the whole paragraph.  A js script would be more applicable here, or do you think the GREP style work?  I missed (even with my books on GREP) to any type of nail model.

    How do you tell the difference between the first and the second comma in the meeting, 15:30? They are all two followed by a space. PM maybe a clue? Then ^. +? pm\s [:-]-? might work.

    Peter

  • Use GREP to apply paragraph styles, character styles not only

    I have a body of text, and in it, I would like to apply a specific style to the paragraphs corresponding to a model. I did a GREP style that applied some changes formatting of paragraphs, I tried that it affects, but in doing so, I found that I couldn't Center these lines using a character style. (The corresponding lines should be centered, and the rest should be left aligned.)

    I was thrilled to learn that the GREP function, then completely disappointed with this limitation. InDesign offers the possibility to automate this, so I must not cross and Center each paragraph corresponding to the hand?

    Thank you!

    InDesign provides a way to automate this so?

    Yes and no. There is no dynamically linked paragraph styles to a paragraph about his boss, but he has at least two alternatives:

    (1) use Grep-F/C

    (2) use the script FindChangeByList or MultiFindChange which is basically automate operations F/C

    HTH

    Loïc

  • Is it possible to install several facilities of the database on Windows?

    Hello world

    I have a Windows Server 2008 with Oracle 11 g R2 (11.2.0.3, Standard, 64 - bit) database. I need to install an additional database (11.2.0.3, Standard, 64 - bit) for tests on the same server. These tests are patches of database, which will first be applied to the new database before applying these fixes on the existing database, in order to assess potential problems after having patched.

    I'm used to install, configure and manage databases Oracle as a stand alone, RAC or physical standby via the DataGuard since 9i - as long as I'm in a UN * x / linux environment (Red Hat Enterprise Linux, CEntOs, Oracle Enterprise Linux, etc.). Implementation of multiple instances in a single or multiple homes has never been a problem for me so far.

    I already searched google, oracle.com and other related proceedings. But I have found no results on the installation of two or more homes to Oracle under Windows. I found the guidelines on copying / cloning an instance in a new home, but if I remember correctly, it is intended for copying / cloning on other servers and not on the same server. Given that the existing database is installed on Windows, I'm afraid I can damage the existing installation to rerun the configuration wizard, change the registry values for Windows, and the database running as a service.

    Is it possible to have several houses of the same Oracle database, with even the version, edition, and the archiecture (11.2.0.3, Standard, 64 - bit)?

    If so, how can I get it?

    Best regards

    Crazy bytes

    You can run the Setup utility again and specify a different Oracle home. In fact, the installer can provide a different name automatically for you. It's been a while since I've done it, so I'm a little fuzzy on the details. How the two facilities are managed by different registry settings, such as ORACLE_HOME0 and ORACLE_HOME1.

    Another caveat is that when the management of these cases, make sure you start the utilities for each database to its respective home. So, in the menu start, you choose tell SQL * menu Dbhome1 more to manage a single instance and SQL * in the menu of dbhome2 to manage the other instance. It's so environment variables get ready properly before the application starts.

    "Here's another link to the documentation for you on this topic: http://docs.oracle.com/database/121/NTDBI/intro.htm#NTDBI2648 "

    "2.3.4 multiple homes to Oracle Support.

  • With the help of several styles of paragraph in a table cell

    Hello

    I'm stuck using several styles of paragraph within a cell. I guess the solution is that I need to start a new paragraph, but so far I have not found a way to do it. When I directly in InDesign, it works fine, but I can not start a new paragraph when you use the script.

    Here's a solution I've tried:

    with {(table)

    .properties de.insertionPoints.item-(1) lines [0] .cells [0] = {}

    content: '1 ' Format string,

    appliedParagraphStyle: styleFormat1

    };

    .properties de.insertionPoints.item-(1) lines [0] .cells [0] = {}

    content: "\rString in size 2',

    appliedParagraphStyle: styleFormat2

    };

    }

    But until now I did not get a new paragraph. When you look at the IDMLs, you can see that InDesign adds a new paragraph inside the cell, while my code remains in the same paragraph.

    Here the IDML result when I do in InDesign:

    "< cell auto ="ue0ie4i0"Name =" "0:0" RowSpan = "1" ColumnSpan = "1" AppliedCellStyle = "CellStyle / $ID / [no]" AppliedCellStylePriority = "0" >

    < ParagraphStyleRange AppliedParagraphStyle = "ParagraphStyle/Format1" >

    < CharacterStyleRange AppliedCharacterStyle = "CharacterStyle / $ID / [no style character]" >

    < content > string to Format 1 < / content >

    < Br / >

    < / CharacterStyleRange >

    < / ParagraphStyleRange >

    < ParagraphStyleRange AppliedParagraphStyle = "ParagraphStyle/Format2" >

    < CharacterStyleRange AppliedCharacterStyle = "CharacterStyle / $ID / [no style character]" >

    < content > string to Format 2 < / content >

    < / CharacterStyleRange >

    < / ParagraphStyleRange >

    < / cell >

    And here is that when I use the script:

    "< cell auto ="ue0ie4i0"Name =" "0:0" RowSpan = "1" ColumnSpan = "1" AppliedCellStyle = "CellStyle / $ID / [no]" AppliedCellStylePriority = "0" >

    < ParagraphStyleRange AppliedParagraphStyle = "ParagraphStyle/Format2" >

    < CharacterStyleRange AppliedCharacterStyle = "CharacterStyle / $ID / [no style character]" >

    < content > string to Format 1 < / content >

    < Br / >

    < content > string to Format 2 < / content >

    < / CharacterStyleRange >

    < / ParagraphStyleRange >

    < / cell >

    It is therefore quite clear my script is not adding a new paragraph. Any ideas how to get a new paragraph so I can use more than one paragraph style?

    I don't have test nore debug your code, but I suggest you another method to apply the content and style of two paragraphs. Do not use a with statement.

    What is your version of InDesign?

    Example:

    // Add new document:
    var doc = app.documents.add();
    // Add two paragraph styles:
    var paraStyle1 = doc.paragraphStyles.add({name : "ParaStyle-1" , pointSize : 20});
    var paraStyle2 = doc.paragraphStyles.add({name : "ParaStyle-2" , pointSize : 15});
    
    // Add a new text frame (default is on page 1):
    var newTextFrame = doc.textFrames.add();
    newTextFrame.geometricBounds = [0,0,"150mm","150mm"];
    
    // Add a table to this text frame:
    var table = newTextFrame.tables.add
    (
        {
            bodyRowCount : 4 ,
            columnCount : 3 ,
            width : "150mm"
        }
    
    );
    
    // Assign the contents as array:
    // The fisrt and only entry in this array will give the first cell its contents:
    table.contents =
    [
        "Paragraph 1"+"\r"+"Paragraph 2"
    ]
    
    // Assign the formatting of the two paragraphs:
    table.cells[0].paragraphs[0].appliedParagraphStyle = paraStyle1;
    table.cells[0].paragraphs[1].appliedParagraphStyle = paraStyle2;
    

    Strategic outcome with InDesign CS6 Mac OS x 10.6.8 v8.1.0:

    Hope, that helps.
    Uwe

  • In Photoshop CC2015-how I automatically apply a style to the shape layer that I draw?

    HI -.

    I work in an office with a few different versions of Photoshop on Windows 10.

    On my CS5 PSD I can draw some shape layers, like arrows and have all the styles applied automatically style palette that I draw.

    But the fellow with PSD CC 2015 workers need to use 2 markets - draw shape layer and then select the style in the style palette.  None of the settings on the top of the screen seem to allow us to apply the style we attract.

    Is there a hidden area or a preference?

    The automatic application of a style has been removed from Photoshop?

    TIA your answer.

    J2

    This is not possible with the latest Photoshop shape tool. If you want that it is a characteristic shape tool like Photoshop old tool form the best you can do is submit an idea on the Adobe site comments but you hold no breath hoping Adobe will implement your idea.  If you want this feature you will now need to regress to an older version of Photoshop as CS2. This is the version of Photoshop, I used for my second screenshot, Photoshop community customer family

Maybe you are looking for