Paragraph in the box style containing (text)

Easy I know but I can't do , need help please.

If my choice is the text:

Alert(App.Selection[0].appliedParagraphStyle.Name)

Returns the paragraph used Style.

If my choice is the text box that contains the text, how to alert the paragraph used inside the text box Style?

Thank you, Bren

Hi Bren,

Ask yourself, if you've selected a bunch of paragraphs where the different paragraph styles are applied:

What do you expect that your alert will return?
And what is actually returned?

Then do your tests with a block of selected text:

alert(app.selection[0].texts[0].appliedParagraphStyle.name);
alert(app.selection[0].parentStory.texts[0].appliedParagraphStyle.name);

And finally to loop through all the paragraphs of the text frame and its history.

Note: $. writeln() will write results in the JavaScript Console to ExtendScript Toolkit (ESTK)

var textFrame = app.selection[0];
var textOfTextFrame = textFrame.texts[0];
var textOfStoryOfTextFrame = textFrame.parentStory.texts[0];

if(textOfTextFrame.paragraphs.length > 0)
{
     var paragraphs = textOfTextFrame.paragraphs.everyItem().getElements();
     for(var n=0;n

Kind regards
Uwe

Tags: InDesign

Similar Questions

  • Paragraph in the Pages style?

    I'm trying to set up a paragraph style in a document with Pages where the first line is not indented, but all subsequent lines are indented? I searched using Pages and I cannot find this information. Does anyone know how to do this?

    Thanks for the help. RRR

    Hi Anthony,.

    Click anywhere in a paragraph and a panel Format > text > Presentation > withdrawals > left > Indent left.

    Note that the original style (body) is now body *.

    Click on the blue button on the update to change all paragraphs (body) to this new indent from left.

    Kind regards

    Ian.

  • How to format different paragraphs in the same block of text quickly

    Hello world

    I have 7 paragrahs as part of a text. How can I give a paragraph style 1,3,5,7 and 2,4,6 another syle in a quick way, by which I mean that I don't have to click on every single paragraph and the syle apple every time. Is it possible that I can apply a style to the text frame, and when I place the 7 paragraphs, they will be automatically formatted as I mentioned above. I tried to use the nested style, but I found the nested style is only used for formatting different parts of a single paragraph. Am I wrong?  It will be greatly appreciated if anyone can come back to me. Thank you!

    Simon

    If style 1 is listed as "next style" style 2 and vice versa, you can select all the text, then right click on the name of the style you Wan to apply to the first paragraph and click on apply the style and the styles and following style allows to scroll the selection.

  • Captivate 8 - cannot change the captions or contained text of the smart shapes

    I am arm wrestling with C8 after C7 update last week.  Now, on the first software Simulation, I recorded from scratch, I can choose failure of legends and the intelligent forms with text in them, but I can't edit their content.  These elements are NOT locked in the timeline panel, otherwise I would not be able to select them.  I can move them around, but they contain the auto text that Captivate put into them, and I can't change it. I can also change the shape and type of legend of failure or intelligent form. When I insert a new legend I have the same problem.


    The project has 55 slides, so it should not be because of its size.  I erased the library of unused items.

    I recorded under a new name, closed and reopened the project, closed and reopened C8 - same question. Any ideas?

    Sorry, I forgot this post from last week and published inadvertently.  I'll mark this one as replied to clean of open-ended questions.

  • How to display the box around a text field read-only - Jdev 11.1.2

    Hello:

    In an ADF Web application:

    I have an af:inputText field, but I want to say read-only. So I put the readonly = true property, but when I did I lost the video box around the field. How can I make the text read field only but keep the box around the text display? I also tried setting to off but then it displays in gray. Is it possible to have the look of text just like a field of regular text input field but make unmodifiable?

    Thanks for the help.

    Hello

    I think that you should use the disabled property and with skinning, change the color of what you want.

    For example:

    af|inputText:disabled::content {
    background-color: White;
    font-size: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #000000;
    }
    

    Kind regards

  • Firefox does not display some things, for example the box for this text, but only on a logon - how to fix?

    Firefox does not appear certain things. For example, the area around the text, the above options (bold, italic, type inserting a link - I can see what they are just by moving the mouse pointer in the approximate area and reading the small text that appears). Other things, that it does not appear - the word 'Google' when I opened the page of search engine, icons in eBay. On eBay, when I log in, the words "sign in" appear as 2 different fonts superimposed on one another, both in black. In Internet Explorer, it appears as white text on a blue background and is quite readable. Now that this description has reached the length where the scroll box is needed, the scroll box appeared, but there is still no box around the text. Underneath, there is a box to a drop down menu ("what happened"), but not for "began when this" or "troubleshooting information. I don't know where to put the cursor to find these areas because it turns into a bar I when I'm in the right place. The really funny thing is: only, it has that way about my logon - works of fine wife! (Work that one!) It all started when I was running version 3.8.5 (I think it was). I downloaded version 4 hoping he could solve the problem, but it didn't. I uninstalled and reinstalled, but the problem is still there. I have several months now (I think - at least 2 months) while the computer was turned off and rebooted several times, without effect.

    Looks like a broken profile. Back up your bookmarks, create a new profile , and then import your bookmarks back in. Let me know if you need additional assistance.

    Thank you!
    handsomeorlandoman

  • Check the box for entering text

    How can I activate a TEXT ENTRY box after that a swf file is loaded? (I use loadMovie to get the swf).

    Instead of loadMovie, use the MovieClipLoader.loadClip with a listener for completion of load that you can use to trigger the activation of the textfield object.  If you are looking for MovieClipLoader.addListener in the help documents, there is an example that should be useful.

  • Disables the Muse in the edition of synchronized text browser

    I check the box in the preferences of the page 'Engable in the modification of the browser.

    I also check the box 'enable synchronized text '.

    Nearly, host is running PHP 5.4 (5.1 documentation States for in the browser of synchronized text editing).

    And every time I have download the site, he says that he is off the synchronized text editing.

    Why would it be?
    This is the site below. There is a phone and a desktop with a common text version.

    http://www.theretroagency.com

    Help!

    This message and the InBrowser edition of synchronized text will be disabled if/when discoveries Muse, it cannot update the .htaccess file from your site during the download process.

    Synchronized text is based on the use of .php for the pages in your site that integrate synchronized text. This means that one or more of your existing .html pages would change to be MyPage.html to mypage.php. That change would break external links to the page and have an impact SEO. That's why Muse will put information in the .htaccess file then MyPage.html operates under the name mypage.php and external links and SEO are preserved. If Muse finds that he cannot write updates to the .htaccess file, then it does not use .php for the pages of your site and your page file names do not change. However, this means updating text synchronized via InBrowser edition is not available, because it requires .php pages.

  • Click on the boxes (alternatives or display a border around them?)

    Box objects\click insert\standardregarding:

    Currently, I don't know a simpler way (in terms of efforts/steps) to create "slide-over" or "pop-up" boxes or hypertext links.

    The only drawback to the use of boxes to click is that you can color or automatically include a box around them.

    If there is no error, just click on the boxes include a text box, which automatically appears when the mouse is rolled up on the active area. However, rollover slidelets allow colors and borders, however, they do not include a drop-down text box. A text box can be added, but this requires additional efforts... that finally slows down development.

    Thank you

    Hi Shawn

    Buttons and click areas have the same options. What you have presented, looks that you are looking for the legend of suspicion.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • WTH?  I have a gap in the text that I can't fill.  There is no hidden formatting that I can find, and I apply a paragraph style to text.

    WTH?  I have a gap in the text that I can't fill.  There is no hidden formatting that I can find, and I apply a paragraph style to text.

    I'm not well-versed in indesign, but what I've discovered, is that the box around the page number on the master was wrapping text, which was originally my text to break around her at the center bottom of the pages.  Problem solved, and amiellemiel is right.

  • style character or paragraph to the text of my body?

    Which should I use, style of character or paragraph to the text of my body? When I first import text in my document, which should I apply?

    Don't we just cover it with you, or was it someone else?

    Paragraph styles are the first level of formatting and are applied to all the text in a paragraph. They include fonts specifications. Character styles are in 'special' situations where you need to a single character or a word or group of words, to have a feature that has a different shape, the basic text attributes applied in the paragraph style. Character styles can be as simple as changing type of italics, or by adding a line of underscores, regardless of the police, or can include police information that will always force this particular text to be in a certain face, weight, size and even if you reset the paragraph style of the text that surrounds (you could do this for a brand name of the product).

    You don't want to apply a character style to an entire paragraph.

  • My paragraph styles have disappeared and are now appearing as the character styles

    Working on a new site because my old site muse become buggy...

    and now, my paragraph styles have disappeared and are now appearing as the character styles

    Screen Shot 2015-10-13 at 5.07.55 PM.png

    Thank you for sending the files. One of the files does not contain any character or paragraph Styles. In the other, I see the character styles named as paragraph styles. All indications from within the file are that they were created as character styles. The file format includes indications of the type of the style as well on everything that they are applied and in the list displayed in the palette. All of these styles are indicated by styles of characters in both places. The attributes that are in the styles are limited to what is allowed in a character style.

    In some places where the styles are applied, they are applied to the blocks of text or widget and replacements parts for paragraph-level attributes (i.e. h1 tag, space before and after, etc.). This leads me to suspect that they have can be created from blocks of text pointer tool selections (or other elements of text in widgets) and it was perhaps accidental that they have created using character Styles where paragraph Styles Panel rather than the Panel?

  • [AS] [CS6] Apply different styles in the context of a text

    Hello

    Currently I have an AppleScript script to fill a block of plain text with a series of chains:

    say MyTextFrame to define (content of the history of the mother) to MyText1 & MyText2 & MyText3 & MyText4

    I would like to apply a different style (MyStyle1 to MyStyle4) for each of these channels (MyText1 to MyText4).

    Precision: MyTextI strings can contain a word or a paragraph or more, so I can't apply a style to a paragraph, for example.

    Thomas

    See the syntax below

    Please note that, while the js elements begin a 0 as start at 1, so you will have to set that in the script by Uwe

    Tell application "Adobe InDesign CS6"

    Set myDocument to the active document

    page 1 of myDocument, myPage value

    myTextFrame value framework text 1 of myPage

    tell the parents of myTextFrame

    Reference value character myText 1-character - 2 of paragraph 1 of the text object

    say myText

    apply the character style with the character style "myCharStyle" of myDocument

    tell the end

    tell the end

    tell the end

    look at examples in manual https://www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/InDesignScripting/InD esign-ScriptingGuide - AS.pdf

    A very useful guide indeed

    Trevor

  • 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		   
  • each time when opening AI CC 2015 I get the message "file contains the update of legacy text.

    Everytime I open AI CC 2015 "this file contains the text that was created in an earlier version of Illustrator.  The legacy text must be updated before you can change it."  Three times, but I'm just launch the program and not to open a file.

    Thank you

    cvcomputers,

    You can try to reinstall using the way complete three steps (the otherwise strange things may persist):

    (1) uninstall (check the box to delete the preferences),

    (2) run the cleanup tool, see the link below,

    (3) reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

    The cleaning tool works for all versions of CS3 on (you can see the top of the page).

    Here are the instructions for use, including individual applications:

    https://helpx.Adobe.com/creative-cloud/KB/CC-cleaner-tool-installation-problems.html

Maybe you are looking for

  • Satellite C50D-- Changed mode of function keys - can't change it back

    I have a Toshiba Satellite C50D-A, with Windows 8.1 who bought earlier this year. Recently, my function keys mode changed somehow and I can't seem to restore. When I bought the computer that the Fn button should NOT be pressed to use the special func

  • Boot Dell Latitude problem

    Turns on when I start my laptop (a Dell Latitude D610) he displays that page load with the Dell icon, but it just goes to a page is black with the _ blinking in the top left corner and not keys working that they just beep noises and F8 will not start

  • HP ENVY 4500 series [D37511]

    I'm on a MAC on HP ENVY 4500 series [D37511] print. How to print grayscale? Adjustment instructions of the printer in the user's manual do not operate on MAC, nor do they work in the control panel of the printer, there is no Advanced menu the printer

  • Connection Internet Sidebar

    My sidebar inst connected to the internet, I have a good connection, I can browse the web very well.  None of my Gadgets work because he claims that I am not connected, when I am.  What can I do to fix this?

  • The secondary drive no longer appears after recovery

    I went recently to have 10 installed windows to do a full factory restore in Windows 8.1.  Fortunately with Alien Respawn the effective recovery was not too bad, but when I restarted I lost contact with my storage drive.  Thinking that I can get mad