within a block of text bound within text delete

in a document, find the linked text frames

out of the text (two lines) and I want to delete a block of text

Is it possible that an order letter

A1.jpg

Try this,

var doc = app.activeDocument;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "~a";
var found = doc.findGrep();
for(var i =found.length-1;i>=0;i--)
{
        var ip = found[i].insertionPoints[0];
        if(found[i].allPageItems[0].lines.length == 2)
        {
                app.findGrepPreferences = app.changeGrepPreferences = null;
                app.findGrepPreferences.findWhat = "\\r";
                app.changeGrepPreferences.changeTo = "";
                found[i].allPageItems[0].texts[0].changeGrep();
                app.findGrepPreferences = app.changeGrepPreferences = null;
                var cont = found[i].allPageItems[0].texts[0].duplicate(LocationOptions.AFTER,ip);
                cont.characters[0].appliedCharacterStyle = doc.characterStyles.item("my character style 1");
                cont.characters[1].appliedCharacterStyle = doc.characterStyles.item("my character style 2");
                found[i].remove();
            }
    } 

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • Blocks of text within the illustration/container management

    Hello

    One of the things I do most often, as a technical writer, creates frameworks anchored including an illustration, some blocks of text and a few lines that connect them. Import into FrameMaker, a related illustration (or create a frame and import is the illustration), resize the frame surrounding the illustration, and then create blocks of text inside frame illustraton to include captions.

    I would reach the same goal in InDesign CS5, but have yet to understand what is the right way.

    First of all, I assume that the equivalent of "Below the current line" anchored frames, ID, is a framework inserted, that must be repositioned vertically.

    But then, after that I placed a picture in there, I don't know how to add text blocks that remain fixed within the frame of the illustration (the framework 'container', I would call it). It seems to me that any item, other than the illustration cannot be included within this framework 'container '.

    Any suggestion on the other how it would be welcome.

    Best regards

    Paolo

    You'll want to make your artwork and blocks of text as separate objects, and then group them before pasting in the text stream to anchor the group.

  • How can I move a block of text from the head of <>tag area within the &lt; body &gt; tag box?

    I am retarget approximately 2500 html files and a block of text should be moved to the head of <>mark the surface of the < body > tag. It must immediately follow the < body > tag. Here is an example: < h3 > heading < / h3 > < p > A bunch of text here, blah blah < /p >.  I find the block using a regular expression < >(.*?) < p > h3, but do not know what to do after that.

    If you just want to move the

    and

    on theand in thethe following regular expression work:

    (

    [\s\S]*?

    )([\s\S]*))

    Replace in the field, use this:

    $2$ 1

  • reactive image inside a block of text

    My image changes size when it is inside a block of text. Should we live with?

    Hello

    Correct: in this version, page within blocks of text elements do not support resize sensitive behaviors. You can have different sizes (fixed) in different stitches.

    If you have a real example of a drawing, you are trying to achieve, which would help to make to support this in the future.

    Abhishek

  • Images are pasted as text embedded in a block of text.

    Whenever I paste an image I copied with ctrl + c from another software, its pasted into indesign as an object embedded within a block of text.

    What should I do to have all the images pasted with ctrl + v always be stuck like a graphic block?

    PS: I have no style object created or assigned to what it is.

    A roundabout method would be to save the Word document in PDF format, then copy the PDF file and paste into FrameMaker with nothing selected. You will probably have to develop a method to resize the image firat. If all images must be resizing the same amount, you may be able to use the options under object > transform or object > transform again on multiple selections.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • Blocks of text on the Pages of body 'Buried' after update of the Page Master

    I have a background full screen on my main page (on the left in this case) that integrates static graphics and borders for certain master pages. I use the borders/boxes for NOTE and END of text on some pages. Blocks of text on these master pages do not overlap. I added text blocks with my icons and the text of the note to these body Pages that I need them. All great so far.

    I decided to update the background chart on page master to change colors, etc.. All files are linked.

    Now, with funds master page updated, these pages where I added text blocks are 'buried' as on a sublayer. I checked that my Master Page background images are "sent back". I tried to wear my text boxes at the front on the Pages of my body, but they are still hidden. Interesting as the anchored frame (the icon), I attached to each NOTE or TIP point appears, but the text is not. Also, I can see and select the contours of the block... the text is hidden. If I drag the fame to another part of the document (for example, on top of another Master Page text frame sank, while the text is displayed.

    There is no image on the master page to the enclosed area. I wonder if that's what I need trouble. Just add a backstory (not attached flow)?

    Advice before I go and screw something else?

    It is what it is supposed to look like (1). Image (2) what I mean now.

    V7Page2.jpg

    V7Page.jpg

    Thanks Arnis,

    It was the property of skin! How simple... I didn't have on this subject.

    Solved!

    To answer you question, however... my approach for the construction of this new model was:

    1. I created a graph from bottom (full page) to contain the image of brand and imported/positioned.
    2. I placed the header and a footer frame and filled with content.
    3. I placed the blocks of text with streams (as a single stream in this document).

    I'm not dropping blocks of text for the content of the body... except for these tips and remarks. I don't want to use a workflow for this because I never know where they'll pop up and I want to be able to (position) specifically on each page. Is this a good approach?

    Yes, I'm aware of the continuous line down the block of text NOTE you mentioned. Originally, I had all the text within the limits. When I have updated master, all offbeat pages (only in blocks of text body page with notes/tips). I repositioned and they flow very well now.

    Thank you very much for your help continues with it. Why these problems always pop nitpciky - up to date - not when things are slow!

  • InDesign: how tilt blocks of text without distorting the text?

    I want to put in place several large blocks of copy to these requirements:

    -the basic lines of the text are at an angle on the page

    -the left and right edges of the text block are shot-on horizontal (aligned with the guides in the screenshot below)

    -the block of text can be enlarged or reduced without changing the angle of the left and right edges

    -forms of the letters themselves are not distorted

    Skew1.gif

    This screenshot shows what I'm after.

    Skew2.gif

    This screenshot shows the real bounding box for the text block.

    Skew3.gif

    This screenshot shows how the angle of the text box changes when I change its size.

    I think Illustrator is a kind of function that allows you to "zero" (reset the transformations of a grid of 90 degrees) an object after it is transformed. Not finding anything like that in InDesign. And I find no way to set a custom angle constraint that would allow me to use the direct Selection (white arrow) tool to change the height or width with confidence.

    I'd appreciate some tips! Thank you for your attention.

    I do so with the example of shooting. Tilt works the same way.

    1. draw your rectangle, I applied a text frame reference grid (textframe options)

    2. with the Selection tool or the transform tool turn the frame in one direction, you can also do this with the entrance of the value in the transform Panel, what I would recommend.

    3. now, select the direct Selection (white arrow) tool and hold the ALT key and click on the frame. Now, only the frame is selected. Turn the other way, or insert the value in the transform Panel.

    I also have another method to offer:

    1. Draw the main frame with the text tool.
    2. Draw a small box above, it must be much smaller than the main frame.
    3. Turn the small frame in the direction that where you want to go the text.
    4. Select the two images.
    5. Go to the Pathfinder > Add.

    Now, you can add text or select a text based frame reference grid. He will do the same as above. May be simpler.

  • Heights of game for all the blocks of text in a document

    Looking to do something seemingly simple. I want all the blocks of text in my document to the same height.

    Here's where I am.

    app.activeDocument.textFrames.everyItem () .height = "2.3195 in."

    Note: I work in InDesign CS5.

    Any help on where to go from here would be greatly appreciated.

    Or, in the CS6 and later*:

    var NEW_HEIGHT = '2.3195 in';
    
    // MULTIPLE RESIZE() IN ONE STEP
    // =============================
    app.activeDocument.textFrames.everyItem().resize(
    
        // Target bounding box(es) -- Use OUTER_STROKE_BOUNDS if needed
        // ---
        [CoordinateSpaces.INNER_COORDINATES, BoundingBoxLimits.GEOMETRIC_PATH_BOUNDS],
    
        // Reference point -- Here resize is performed relative to the top edge
        // ---
        AnchorPoint.TOP_CENTER_ANCHOR,
    
        // Absolute replacement
        // ---
        ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,
    
        // [width, height] in points
        // ---
        [ResizeConstraints.KEEP_CURRENT_VALUE, +UnitValue(NEW_HEIGHT).as('pt')]
        );
    

    * Can operate CS5. x too, but I think remember that CS4 has a bug where resize() is a plural specifier whose receptors belong to several blocks spread.

    @+

    Marc

  • by selecting all the blocks of text on all visible layers

    I want to select all the blocks of text on all visible layers.

    the script below will select all the blocks of text, even in groups, but if the layer with the text is invisible the script error. (target layer cannot be changed)

    If (app.documents.length > 0) {}

    var doc = app.activeDocument;

    var numTextFrames = 0;

    for (i = 0; i < doc.textFrames.length; i ++) {}

    textArtRange = doc.textFrames [i];

    textArtRange.selected = true;

    }

    }

    So I made this script to select blocks of text on only visible layers, but now missing text belonging to a group.

    var layerCount = activeDocument.layers.length;

    var docSelected = activeDocument.selection;

    for (i = 0; i < layerCount; i ++)

    {

    currentLayer = activeDocument.layers [i];

    If (currentLayer.visible == visible)

    {

    for (j = 0; j < currentLayer.textFrames.length; j ++) {}

    textArtRange = currentLayer.textFrames [j];

    textArtRange.selected = true;

    }

    }

    }

    can someone tell me why it is not some frames of text bound in a group when made this way and is it possible to get all managers of related texts selected on all visible layers?

    Thank you

    Duane

    Try this:

    if (app.documents.length > 0 ) {
        var doc = app.activeDocument;
        var numTextFrames = 0;
        for (  i = 0; i < doc.textFrames.length; i++ ) {
            try {
            textArtRange = doc.textFrames[i];
            textArtRange.selected = true;
            } catch (e) {}
            }
        }
    

    Have fun

  • Overset text when you create a block of text to another object

    I apologize if this has been answered in other discussions, but the search function does not work now. I am trying to create a block of text on top a .pdf bound. I can create the block of text, but as soon as I enter the text, I get the text marker in excess on the frame, despite the fact that the frame is big enough to accommodate the text that I entered. This happens if I simply enter a single period.

    If I click on "mount the frame to the content" he develops vertically the text block until it is large enough to have a part that leaves at the edge of the linked .pdf below, and the text that I entered appears here. Of course, now, I have a block of text that is 20 times bigger that I need, and I still have no text in the position where it is needed.

    Here is a link to a screenshot:

    http://Tinypic.com/r/i3vqjs/7

    I'm still a newb on InDesign, and I hope that there is an easy solution to embarassingly on this point I should have, but any help is appreciated.

    Thank you

    You probably dressing applied on the structure with the PDF file. Either remove it, or open the options of text block for your frame on top and check the box to ignore the dressing.

  • Way to block hours texts outside the list of contacts in the end?

    I keep getting texts at 02:00 in the spam that wake me up. always a different number of front.

    There must be an easy way to block all texts apart from my list of contacts during certain hours? I can't be the only one to experience this.

    Hello

    Drag to the top of the control panel culminating point halfmoon homescreen that donot disturb

    Put it on every night.

    See you soon

    Brian

  • Blocks of text overlapping fill Uni transparent look in the press

    Hi all

    Looks like I need help again once.

    I have three blocks of text overlapping (to some extent) (all 100% opacity, red background fill, fill black middle and above no fill). They look good on the monitor to identity card, but they show a transparent way when printing. I can clearly see the Red bottom showing through the average black person (in the region of overlap) and the top white text looks a little red tinted (in the same region overlapping). What I am doing wrong?

    Thank you for your help.

    The preference of the appearance of Black allows you to set whether the default [Black] swatch overprinted automatically.

    Offset inks are normally transparent and the precision with which a black overprint ink display is managed by assigned with the document CMYK profile. The degree of transparency depends on the situation of the press, so overlay would be most obvious on a no bed sheet and this is reflected in the allocation of profile during separation overprint preview is on.

    This is Euroscale Coated followed SWOP bed

    Older profiles did not show the effect of black overprint, so if you have turned off the color management you wouldn't see overprinting of black.

  • The blocks of text move in Muse

    I'm having a problem with the moving blocks of text. I'm trying to place a block of text on a chart. They are in the same layer. The graphic (png since Illustrator) is x 50px 960px. the text block is x 50px 200px. (Picture the graph under a brace of section and the text is the name of the section).

    I diligently to align the graphic frame and text to align horizontally (they have the same value of Y). In design mode, they are lined up. (The text is centered in the image horizontally) In preview, the text is is more aligned to the Center with the graph below him.

    I tried all PIN for browser, pin it to the page and not pin code... I was even considering sticking a PIN in my eye, but that seems not good either... I had this same problem with the other blocks of text as well. (Coincidentally also in addition to a PNG in Illustrator.) I had the text block completely disappear in the preview when pinned.

    I don't know that this is one of those really stoopid things simple if you know what to do, it's very simple... but if you do not have...

    The big question... What is the trick to get the text to appear in the same preview as it appears in the design?

    Someone got this?

    Zak solution in this post on the forum help? Alignment inside the bug box.

  • Alert to variation of Muse - block of text - not supported

    Hello

    I just changed the text on my website to Verdana web fonts Dosis, which I installed it. DOSE does not have an italic version, which is fine. But wherever I used Verdana italic earlier and preview in a browser, I now get a warning will appear indicating, for instances of 36:

    «Block of text on the "Home" page uses a variation unsupported "italic" from edge Web font named "Dosis medium".» Italics will be simulated. »

    Seen in the browser these words that had already been put in italics when I used Verdana are now italicized in the dose in the browser. I do not see the warning (x 36) whenever I saw in the browser. I want especially to ensure that this do not cause any problems when I'm done with my design and publish it.

    Please notify.

    The italic shape of Dosis you see in the browser is a false "italics" artificially simulated by the browser sloping forms of the letters. This usually results in an unnatural feel compared to a true italic, but if you are satisfied with the appearance, feel free to use it; It will not have any other "problems." However, there is no way to silence warnings from the time of export, if you decide to go with the fake italics.

    Abhishek

  • Select a block of text with lable

    I'm coming down with a block of text from the document page 2 with label "main script text" but script below does not work.

    app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.spreadOrigin;

    Try

    {

    var jt = app.activeDocument.pages [2] .textFrames;

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

    If (.label jt [i] is 'Hand Text')

    JT [i]. TextFramePreference.autoSizingType = AutoSizingTypeEnum.HEIGHT_ONLY;

    }

    {catch (e)}

    Alert ("nothing happened");

    }

    Can you please help me what is the error here.

    Counting with numbers index starts with the number 0.

    So the second page is app.documents [0] .pages [1].

    Uwe

Maybe you are looking for

  • How to print all messages in a forum url?

    How to print all messages in a forum url?

  • White screen when you run the pc diagnostic tool

    HelloWhen I run diagnostic pc screen tool is white and I do not see records or whatever it is in the field. I can press select all and run, but the test is finished in less than 2 seconds?Has it disappeared? How can I get that back?Thank you people.

  • Import music from iPhone to iTunes

    Hello I have songs on my iPhone that I don't have on my Mac, so I was wondering how it would be possible to get the music to sync with my iTunes data rather than be the other way around. Thank you

  • HP Z840: radiator z840

    Hi all First post here. I am looking for a replacement radiator / fin Assembly for my HP Z840 (screw type) cpu cooler From the factory, it only has one, and I would get a second processor in there. Anyone who has done this in England, and if so is it

  • Weird Pages Forum

    Someone else then reading pages have normals of the gaze and then some will be super great with a weird format. Difficult to read.