find by content en cells replace stroke and fill color

I've generated in InDesign CS3, a catalog with hundreds of tables.

Unfortunately there is a mistake or two in the tables of construction. In a way, I need to replace a contour of a cell color and also a fill color.

So my question is if there is a way to InDeisgn CS3 for automatically...

  • research in a document for the cells in a table with "Black_EN text color" AND "Black_EN fill color" and change this particular cell line color in Black_EN
  • research in a document for the cells in a table with the color of the text 'Black_EN' AND 'fill color black' and change the fill color of particular cell in Black_EN

Can someone help me with a usable script? I'm a newie to scripts so that any help is useful!

Thanks in advance, Pascal (form Belgium)

Aaahh... the old adage of an image equal to a thousand words. In this case, the words are long enough, because the image is > 280K.

O - kay. You may have a lot of tables, some bad colors, but the text is still the appropriate color. How does this sound: you click inside any table, and the script checks the current (*) text color. And then it assigns all the traits that color, and fill each cell with a 50% fill pattern. This means that you can select a table, run the script, select the next, run the script, etc. until done (or totally bored, everything which comes first).

(*) In fact, the color of the text of the first character in the upper-left cell. I hope this isn't a problem.

The script is quite indifferent to your selection: any where inside, in the text or with a cell, row, column, or even the entire selected table is no problem.

Like enough! (see English people choke on our Dutch gees)

table = app.selection[0];
if (table.hasOwnProperty("baseline"))
 table = table.parent;
if (table instanceof Cell)
 table = table.parent;
if (table instanceof Column)
 table = table.parent;
if (table instanceof Row)
 table = table.parent;
if (!(table instanceof Table))
{
 alert ("Echt niet in een tabel!");
 exit(0);
}
color = table.cells[0].characters[0].fillColor;
black = app.activeDocument.swatches.item("Black");
table.cells.everyItem().properties = {
 topEdgeStrokeColor:color,
 bottomEdgeStrokeColor:color,
 leftEdgeStrokeColor:color,
 rightEdgeStrokeColor:color };
for (aCell=0; aCell 
         

Tags: InDesign

Similar Questions

  • How to draw the line under STROKE and fill of an object in illustrator cc? Ideas: D...

    How to draw the line under STROKE and fill of an object in illustrator cc? Any ideas ...

    Aleksandar,

    If I (put) understand it, you will need to divide the object. You can:

    (1) select the object and Ctrl / Cmd + C + F, and then remove the filling of the copy and the blow of the original;

    Draw 2) and drag the new piece down between Division 1 objects) in the layers palette, or select 1 copy) and Ctrl / Cmd + C + F + X + F or similar.

  • Various measures between the stroke and fill

    An object has different measures in the transformation Panel, when I toggle between the stroke and fill. I have my race center-aligned. I am currently using 18 CC. I serve HAVE CS4 and have not had this problem before.

    Use Preview Bounds is checked in the preferences?

  • How can I add filters just the brush strokes and fill the painting not pencil.

    Sorry, it's pretty hard to explain in the description.

    I want to know is if I can pretty well just select the brush strokes and filling on a coat of paint and have the strokes left alone.

    I want to filter, and then fade brush strokes and fill on the paint layer but keep the sharp pencil lines, I made a paint filling and brush rubbed on a different layer than the pencil strokes, but it takes forever because I draw the image each time twice, using the brush strokes to go along the pencil lines so I can fill it with a color, if I could their blur on the same layer without the pencil strokes then I could fill just the pencil lines the lines with the Brush tool with paint instead of redarwing if that makes sense.

    Here is a picture to show what im trying to reach

    The pencil strokes are on a different layer in brush strokesScreen shot 2013-09-28 at 9.51.57 AM.png

    If you convert a movieclip (right click > convert to symbol > movieclip) everything that you want to filter, you can filter it is independent of other objects.

  • Get fancy with my stroke and fill button

    Hello gang,

    I use the 3.1.1 configurator to build a Toolbox. At the center of it that I've recreated buttons that represent the selection of stroke and fill. These are scripted buttons that target the stroke and fill.

    I had a bit of whimsy and decided that, when you click the outline and/or fill buttons, they should also lead to the Swatches palette out, so I added this second line invoke the script:

    app.strokeFillProxySettings.active = StrokeFillProxyOptions.FILL;

    app.menuActions.itemByID (16385) .invoke)

    It works!, uh, somehow. The problem now is the following: when you click on, say, stroke, it activates and the second line of the script causes the Swatch Group out. BUT! When you click the fill button (which has the same second line of script code), it causes the Swatch Group to GO AWAY. You have to click the button to fill twice in order to keep the pop-up window of the Swatch Group, invoked in sight.

    I wish she click one time and knowledge remain blown on the screen if it is already there jumped on the screen.

    Who is? I think it's one of those type IF ELSE of scripts, but I'm too newb to grok it.

    Best for you,

    Mike Witherell (with breathing Hurricane down my neck)

    Hi Mike,.

    Use

    app.panels.itemByName("Swatches").visible=1
    

    To display the Panel instead of call it just that switches it.

    Good luck with the storm

    Trevor

  • Keeps changing between the stroke color and fill color? Help!

    Hello world! While working, I have will have to draw the outline of something and then changes to color in, and as I do, I'm changing the fill color using the eyedropper tool, or the Swatches palette. Still my color doesn't seem to change.

    I expect the colors chosen, and it's because for some reason, the program has my color trait selected automatically, even if I use the paint bucket tool, which means that me changing colors is only to change the line color and so, having no effect on the fill color - so I'm frantically clicking to color something with my newly selected color , with does not, because that I do not change the fill color as I thought I did.

    What it seems to boil down to is, SOMETIMES when I draw or change a line, he commutes to line color, and change back when I use the eyedropper and paint bucket tools, as it did in Flash, nice and convenient. Is there a way to prevent it from doing this? Is there a way to make it how it used to be? It really starts to get exasperating.

    Other than I really like the new step up to Animate - the new tools and little more pleasant little General updates do and I want to thank Adobe for him--and make it clear that I am not at all ungrateful for her.

    Thanks in advance.

    Colin thanks for the tip, I could now clearly see the video!

    As Colin described - to 0.34 video, you select the part of the circle (stroke) that modifies the active fill color to the color of the outline (you can identify the active color looking at the State of the fill/stroke button in the tools Panel or color)

    The choice of the color swatch in the swatches Panel is the color of the outline (i.e. to the active color). You can just click Fill on the stage with the selection tool to change the active color to fill and begin your selection Swatch reflects in the painting of your filling.

    The main thing is, if you select only STROKE on stage the active color is set to the race and if you select only fill then the active color is the Fill value. Swatches Panel and color Panel will work to the active color.

    I hope this helps.

    Thank you!

    Mohan

  • Cannot change order of stroke and fill to the text

    In Illustrator CC, I have a text with background colors and contour, and I hang outside the text, not half-n-half. From what I can read (for example Why can't fix us a line of text to the outside (as in InDesign) without having to first convert them into text vectorized?), the way to do that is in the appearance Panel, dragging filling to the top or the race down. But they don't change places when I try - I drag, but nothing changes. And in the Panel advanced stroke, the second and third options to align the lines appear dimmed.

    If I saw the text, then all the choices to align the shots are allowed, but I prefer to do it with the living text. Is this possible?

    It should work as follows:

  • Help to extend your STROKE and fill

    Hello people,

    I'm a keyboard layout for some keys I want to order a custom keyboard.  I am a beginner on Illustrator, I have the keys now set as I would like, but I have to convert all fonts and text used for vector data. Am I right to say that this is done by selecting all and then goes: Type - vectorize? If so, I did this, but my problem is with the second next step society that will display the keys requires me to do, which is to expand the embankment and the race. After you create outlines, I select all and go to: object - expand, but nothing happens, no dialog doesn't pop up or anything. What I am doing wrong?

    Thank you.

    They have no traits to develop (see the empty race field in the Toolbox), so where's the problem?

  • How to change the properties of the drawing tools - choose 'line' and 'fill' color for tools. DC Adobe Reader.

    Since the update to version 15.009.20071 and today 15.009.20077, I have no control of the drawing of the tools - lines always 'Reds' and the 'fill' is always transparent.

    Before the update I could choose the line and color for filling tool tools right-clicking and selecting a range of.

    Is this a problem of user (me) or has been removed from this capacity?


    Your help is appreciated, as I frequently use these functions.

    Hi Thomas,

    If you use the comment line and you want to change the color or other settings then first draw a line, select and right click it and select Properties.

    Please share more details on the other tool you want to know.

    Thank you

    Abhishek

  • find out all the line last character and color fill

    Dear friend,

    I need to find all the last character and fill color of line (no need to the last character of words).

    My code problem: no space in the last character is not the fill color.

    My code is below:

    var myDocument = app.activeDocument;  
    var myLine = myDocument.stories.everyItem().lines.everyItem().getElements();  
    for(i=0; i<myLine.length; i++)  
    {  
        var myCon = myLine[i].texts[0].contents;  
        if(myCon.match(/\n| /gi) != null){  
            try{  
                if(myLine[i].characters.item(-2).fillColor = myDocument.colors[2]);
                }catch(e){}  
            }  
        }  
    

    My screenshot as below:

    last.png

    Please suggest a friend

    Thanks in advance

    KS

    Add a ' if else ' statement to apply the fill color to the second to the last character only if the last character is a space. otherwise apply the fill color for the last character.

    myDocument var = app.activeDocument;

    myLine var = myDocument.stories.everyItem ().lines.everyItem () .getElements ();

    for (i = 0; i

    {

    Chantal var = myLine [i] .texts [0] .silence;

    If (myCon.match (/ \n| IM)! = null) {}

    try {}

    If (myLine [i].characters.item-(1) .silence == "'" ") {}

    myLine [i].characters.item-(2) .fillColor = myDocument.colors [2];

    } else myLine [i].characters.item-(1) .fillColor = myDocument.colors [2];

    } catch (e) {};

    }

    }

  • I have deleted the content of several image files and now want to remove the file names. I don't find a way to remove the names.

    * Original title: file names of photos of Deletig Windows after emptying the file

    I have deleted the content of several image files and now want to remove the file names. I don't find a way to remove the names. How can I delete the file names?

    Right-click on the name of the image file, then choose 'delete '.

  • How can I install CS5 on a replacement/new laptop? I paid full price in 2011 and the key (and it appears in my Adobe account under products), but it was a downloaded product and I can't find a download of this online version and my key does not work

    How can I install CS5 on a replacement/new laptop? I paid full price in 2011 and the key (and it appears in my Adobe account under products), but it was a downloaded product and I can't find a download of this online version and my key does not work in CC.

    Your key does not work in CC, this is a newer version and would require a new purchase.

    Downlaod CS5 here.

    Download the CS5 products

  • I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    Try asking in the forum Premiere Pro seems to be an Adobe first Pro Lab

  • Can not find a way get control individual Dupla and strokes.

    Hi, I have for the redesign of a website of a shipping company. They are located on "Curaçao".  In Illustrator, I drew the following picture of Curaçao to make vector:

    http://static.wixstatic.com/Media/8064f7_1ceabfdbbe6c4819a6322f8ccdb73a62.gif

    Now, the next step is filling in the colors and the strokes and change the opacity of theirndividuallyI. Now that my problem. I tried to expand the picture, made a live paint group. But I can not "Individual" control of fill and stroke.

    I could be overseeing something. It is not an Image complicated... so if someone could help me I would really appreciate it.

    Thank you for the answers quick and entry of Jacob. Really appreciated the help.

    I managed to finally solve the problem.

    I don't have to use the direct Selection tool and change the Anchor Points.

    Other users of 'New' issues with that, I'll explain what I did:

    1 import Image

    2. tracing:

    • Draw the Image in "black and white".
    • Adjust the threshold, railways and the corners to your liking.
    • Make sure you only select only fills and no shots.
    • Ignore white and him vectorize the Image.

    3 enlarge Image

    4. Select the Image and go to the Panel aspect of it and double click on summary to reveal the fill option. (In this case "Fill" is considered the "Stroke" Image)

    5. Select the fill color and adjust the opacity to your liking.

    6. Select the Image. Go to object > live paint > make

    7. Select the tool live paint to color the image.

    After the Image is colored, you need get the opacity control. It was the trickiest part.

    8 select the Image and Expand option must appear in the above. Click on expand

    9 zoom and carefully, double click on the portion of the Image that has been coloured.

    Be sure to select the right path and not the Group. It may take a few tries. If done correctly the color that you previously selected in the sides of the switch of the opacity will be displayed above.

    10. you can change the color and the opacity to your liking.

  • Find the first empty cell

    OK so I use numbers to design a "schedule" for lack of a better word for a flight instructor course. On the summary page, I need to be able to identify the next sequence of flight for each student. I have a sheet that contains all flights that each student must perform and the date which they filled. So what I need on the summary page is someway to watch flight logs and determine what the next flight is to find the first empty cell under each name of students. I have no idea how to go about that though, so if you have any ideas I would be grateful

    Hello j,

    Here are two possibilities, both illustrate below. They are independent of each other and can be used alone or together.

    If students all sequences in chronological order, and the dates in columns are values of Date and real time, you should be able to locate the first empty line using MATCH and MAX.

    Because all dates entered will be 'today' or 'before today', a conditional highlighting rule could be used to color the background of the cell to a cell where a date has been entered.

    Table 1 gives the master record. Table 2 shows the following sequence for the student and the line of table 1, which the sequence is listed.

    Two formulas are used:

    Table 2::B3 and filled with right: = MATCH (MAX (table 1: B), Table 1: B, 0) + 1

    Table 2::B2 and filled with right: = OFFSET (table 1: $A$ 1, B3-1, 0)

    This method is based on the sequences being completed in the order listed, as it seems the most recent (that is to say date the "bigger").

    The rule of conditional formatting applied to all cells in columns B, C and D of table 1 fills every cell that contains a date before the next day with yellow, giving a visual indication of where all the next vacant cell.

    This indicator is independent of the order of the sequences, because it depends on only that there is a date or before 'today' in each cell to be highlighted.

    Kind regards

    Barry

Maybe you are looking for

  • HP Z620: Z620 Workstation - Bios Rev 3.88 A Fn buttons does not!

    Hello I recently got a strange problem with the Bios on my workstation HP620. Keyboard is "Microsoft 4000 ergonomic keyboard". Although the F5 / F10 keys normally work in Windows 10, they no longer work in the system Bios. means I can't save the chan

  • BKF files

    Hi people, I think remember that some time ago, possibly using Windows XP I created a Zip disk backup files, which have an extension of BKF. I would like to reused these files but have no idea at this time as to the best way around the situation. I c

  • Problem setting P1007 on Mac

    I use Mac OS X 10.6.3 and after installing HP LaserJet P1007, get the following error while trying to print any page. The demo page prints fine however. Process: PrintJobMgr [253]Path: / System/Library/Printers/Libraries/PrintJobMgr/happy/MacOS/Print

  • HP Media Center PCm1095c: update audio driver

    HI guys,. I have an old HP Multimedia Center PCm1095c.  I've updated to 4 GB of RAM and Windows 7 Prof 500 GB SSD.  Right now it works but no sound. It seems I need to update driver for Conexant 23880 and 2388 x but I find no download for this.  Any

  • Too slow internet USB dongle connection

    Hello. I use the usb dongle for my internet connection at home and I always face problem of idle, I heard that if I disable usb energy saving plan then the dongle are still working on 100% and he can help solve my problem. I understand that for most