Finding cells by content en replace stroke & fill colour

I have generated in InDesign CS3 a catalogue with hundreds of tables.
unfortunatly there was a mistake or two in building the tables. In a way I need to replace a stroke colour from a cell and also a fill colour.
So my question is if there is a way in InDeisgn CS3 for automatically...
searching in a document for table cells with "text colour Black_EN" AND "fill colour Black_EN" and change that particular cell stroke colour in Black_EN
searching in a document for table cells with "text colour Black_EN" AND "fill colour Black" and change that particular cell fill colour in Black_EN
Can someone help me with a usable script? I'm a newie to scripting so any help is usefull!
thanks in advance, Pascal (form Belgium)

Aaahh .. the old adage of one picture equalling a thousand words. In this case, the words are rather long, as the image is >280K.
O-kay. You have lots of tables, possibly some with bad colors, but the text is always the correct color. How does this sound: you click inside any table, and the script checks the current text color (*). Then it sets all strokes to that color, and the fill of every cell with a 50% fill pattern. It means you can select a table, run the script, select the next, run the script, etc. until done (or utterly bored, whatever comes first).
(*) Actually, the text color of the first character in the top left cell. I hope that's not a problem.
The script is fairly indifferent to your selection: anywhere inside, in the text, or with a cell, row, column or even the entire table selected is no problem.
Graag gedaan! (having them English folks 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<table.cells.length; aCell++)
if (table.cells[aCell].fillTint == 50)
  table.cells[aCell].fillColor = color;

Similar Messages

  • Filled colour as a variable? and setting layer to not block the content underneath?

    I wonder if it's possible to take the filled colour (filled with  myColor.setRGB(0x993366); like a colouring style) and set the colour filled to be a value of a variable in an if statement? if yes, anyone know how to do it?
    and is it possible to set a layer's content so that it does not block any button underneath it? I'm trying use that movie as a mask but I do not want it to block any activity underneath it. or is it better to use the myMovieClip .setMask ( maskMovieClip )(I don't really know how to use this) I only need the masking to appear when a specific button is pressed. Hope my english isn't too confusing. Thanks.

    Yes. If you check the documentation for the Color class you will see there is a getRGB() method which returns the value set by the setRGB() method. However it doesn't tell you what color something is, it tells you what color transform has been assigned to that object. So if you make a movie of a red square and you do this:
    var myColor:Color=new Color(myClip);
    trace(myColor.getRGB()); // traces "0"
    Which could either mean it has been tranformed to black or that it has no transform (which is the case here.)
    What you are seems more complicated than it probably needs to be. What are you actually trying to do? How are these clips having their transforms assigned? What does it mean that they are a certain color.
    As for the layer thing. I have no idea what you are talking about.
    BTW, here is something you didn't ask for. Using the on(event) type handler coding went out of style with the introduction of Flash 6 in 2002. It is a very inefficient way to code and is very difficult to maintian because you have to look through all your items to find the code. Most folks these days put the code on the timeline where it is all in one place and easier to maintain. Here is a great article about it:
    http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent

  • Move info from one cell to another based on a third cell's content

    Okay I'm not sure that this is possible but I thought I would put it out there to see if someone can help me figure this out
    Lets start with the first sheet of data:
    From this sheet I would like to move multiple cell's content to cells on another sheet based on the selection of the "SOLD" column.
    This is the second sheet....
    Basically, lets say that some one would select "Y" for the sold column on sheet one. Once "Y" is selected the text from each respective cell in the row would move to the second sheet. So if row 1 "SOLD" = "Y" then "LAST NAME" would move to "CUSTOMER", "DATE" would move to "DATE", "NEW / USED" would move to "NEW / USED"
    To complicate it further, is there a way that each new set of data that would move over would automatically go to the next clear row? I will try to illustrate what I mean below:
    ...Also I should mention that there are three different sheets that would fill the final recap sheet....
    Sheet 1: "BOB"
    Sheet 2: "SUZIE"
    Sheet 3: "TOM"
    Recap Sheet:
    Know this is a stretch but thank you for any input.

    What I mean is, if the data can't be input in one table (generally an efficient approach) then have several people input it in their own tables (in a standardized format), then consolidate the data into one table (that parts very quick) and use the power of the Numbers interface to look at different views of your data. The sort and filter features are quick and powerful.  Otherwise, you'll have to manage formulas in both the individual input tables and in the data table and you'll need extra "index" columns.  That's doable, but I would guess unlikely to save time in the end.  Unless I've misunderstood your situation.
    SG

  • XML document content not replaced

    I insert XML documents into iFS using the WebUI via browse. I insert them again after making changes. The new content does not replace the old content. I do not see the new content when viewing the document and search does not find the new content. These documents do not have a type definition and are not parsed. I've tried inserting the new ones after deleting the old ones and I still get the content of the documents that I inserted the first time. Any ideas?

    Hi Greg,
    Did you remember to check Parse File on Upload?
    If yes please forward the XML file and also let me know what version of 9iFS you're using.
    Hanne.

  • Cannot find the Web Content repository in test system under KM Content

    Hi Experts,
    We have implemented Web Page Composer in our development landscape. I have created a web page with the required content in the development and now wish to transport this web page and its content to our test system.
    However when I navigate to Content Administration -> KM Content, inside the root directory I am not able to find the Web Content repository within which all WPC content resides.
    I want to know what configuration has to be done in the test system so that the Web Content repository becomes available within KM Content.
    Thanks and Regards,
    Saurabh

    Hi,
    I just want a confirmation on whether I will have to deploy the .SCA file for Web Page Composer in my test and production systems to be able to use the web pages I have created in the development environment.
    Regards,
    Saurabh

  • Unable to find ESR XI Content for SAP PI 7.1 EHP1

    Hi all,
    I check on Marketplace but I don't find the ESR Content (XI Content) for the SAP PI 7.1 EHP1, only ESR Content for SAP PI 701.
    I follow the link:
    [http://help.sap.com/saphelp_nwpi711/helpdata/en/48/d113f7b4073254e10000000a42189b/frameset.htm|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/d113f7b4073254e10000000a42189b/frameset.htm]
    Any ideas?
    Thanks in advance.
    GB

    Hi,
    the page you refer to only mentioned that you can import any XI content (form any of the earlier PI releases)
    into SAP PI 7.11 (PI 7.1 with EhP1)
    so if there is no XI content for 7.11 you can import any other from any of the previous releases
    Regards,
    Michal Krawczyk

  • HT201415 After a months of stable work my new IPad suddenly denies to find cell network under any circumstances.Please advice if anyone familiar with that problem?

    After a months of stable work my new IPad suddenly denies to find cell network under any circumstances.Please advice if anyone familiar with that problem?

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Finder window shifts content off screen to the left.

    This is posted in the Finder discussion also. I post it here also in the chance this is a Retina display issue. I never experienced this problem with Lion on my old MacBook Pro, just on my new Retina display.
    On several occasions the window in my Finder shifts the contents off screen to the left. For example, in column view, the left most edge of the Finder window might be displaying files listed in column 2 or 3. And even that is only the rightmost sliver of that column, showing maybe the last 6 to 10 characters of the file/fold names. There is no horizontal scroll bar and there appears to be no way to force the leftmost content (which is off screen to the left) to come back onto the screen. This appears to happen randomly; at least I've not noticed a pattern. I'm usually in Column view. When this happens switch between view options provides no solution. Minimizing and resizing also have no affect. Scrolling does not work, nor does using the arrow keys.The only solution is to close the window and open a new one.
    Anyone have this happen? Any ideas as to cause or cure?
    Closing the window and opening a new one is not a "major" crisis, but the fact such a bug is running around is undermining my confidence in the system.
    Thanks for your help.
    Bill

    Please post a screen shot of what you are seeing. If you mean to the left of the Finder Window, it goes under the Sidebar area this is normal if your focus is in the Next to right most column. Like this?
    That is completely normal. The left hand side has to go somewhere when the focus in more to the right.
    Although myh scroll bar does allow me to go back to the left.

  • Finder window shifts contents off screen to the left.

    On several occasions the window in my Finder shifts the contents off screen to the left. For example, in column view, the left most edge of the Finder window might be displaying files listed in column 2 or 3. And even that is only the rightmost sliver of that column, showing maybe the last 6 to 10 characters of the file/fold names. There is no horizontal scroll bar and there appears to be no way to force the leftmost content (which is off screen to the left) to come back onto the screen. This appears to happen randomly; at least I've not noticed a pattern. I'm usually in Column view. When this happens switch between view options provides no solution. Minimizing and resizing also have no affect. Scrolling does not work, nor does using the arrow keys.The only solution is to close the window and open a new one.
    Anyone have this happen? Any ideas as to cause or cure?
    Closing the window and opening a new one is not a "major" crisis, but the fact such a bug is running around is undermining my confidence in the system.
    Thanks for your help.
    Bill

    My Mid 2011 MacBook Air (shipped with Lion) has been having this exact problem for some time now.
    It started being really annoying when I placed the Dock to the right part of the screen. 'Drag and Drop' anything to the Dock would almost always reproduce the problem to all Finder windows.
    The only solution I found was to force close the Finder. And, of course, moving the Dock back to the bottom part. It still happened, just less often.
    This issue is still happening after upgrading to Mountain Lion. But now it happens to a single window and I can solve it simply closing it.
    It is not something to drive me mad either, but I am surprised there are so few people discussing this bug. I would love to know if there is already a solution.
    Thanks.
    Oscar

  • I got my newly bought (within 30 days) ipad mini cracked, and the screen was broken, where can I find a place(montreal) to replace it, and how much will it cost?

    I got my newly bought (within 30 days) ipad mini cracked, and the screen was broken, where can I find a place(montreal) to replace it, and how much will it cost? Can i get a free replacement in apple store since within 30 days?

    huilihuili wrote:
    Can i get a free replacement in apple store since within 30 days?
    No. Damage caused by the user is not covered by warranty. A replacement iPad mini is $219 for the 1st generation, or $249 for the iPad mini with Retina display.

  • Could not find the Adobe Content Viewer.

    I have CS6 on my machine and when I try to preview a Folio on my desktop I get the prompt: An error occurred while generating folio preview. Could not find the Adobe Content Viewer.
    I have Adobe Air installed. Does anyone have any recommendations for me?
    thank you.
    PS. I also have CS5 installed and I could not generate preview from CS5 either.

    See this article to install it manually:
    http://helpx.adobe.com/digital-publishing-suite/kb/manual-install-content-viewer.html

  • How to find out web content files linked in folio through scripting

    Hi all,
    Please suggest me, how to find out web content files linked in folio through scripting.
    Regards,
    Moorthy

    @Moorthy – can you tell us a bit more? By mentioning "folio", I think you are referring to Adobe Digitial Publishing Suite (ADPS or short: DPS). If yes:
    1. Do you want to analyze Folio files *.folio and get the linked web content files?
    2. Or do you want to check an InDesign file with an overlay and check what files are linked as web content?
    3. Or something else?
    Where is your base problem?
    Packaging the InDesign files and copy/relinking the web content files after the packaging process?
    Uwe

  • Finding Sales Analytics Content Guide

    Hi All,
    I am trying to find Sales Analytics Content Guide to see the reports we would get out of the box.
    Can someone suggest me where to find it
    Thanks
    Rahul

    Hi Rahul,
    Check "My Oracle Support" for DocId; 832690.1.
    This is the 'Oracle® Business Intelligence Applications Content Guide Release 7.9.6,7.9.6.1' and should give you all the info you need.
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

  • PLEASE HELP! My objects have no stroke/fill unless in publish preview. I can't see what I am doing?

    I have CS6 Flash Professional, Windows 7 Professional, File I am trying to make is an ActionScript 2. I have to use ActionScript 2 for it because it is a school project.  I can click the oval tool, set the stroke size to 2.0 stroke to black, fill to pink and drag to create the oval on the stage. while i am dragging, and when i finish dragging it is still just a thin green outline of an oval. No fill, no thickness to the stroke, and the only color it will be is green. When i click publish preview and load a preview for flash the pop up box shows the oval with 2.00 stroke size, black stroke, and pink fill.
    It seems like no matter what I try to draw or make for the stage it just shows up as this green outline and wont display any of the stroke/fills that i select for them. Is this something in my settings that I need to change?
    If someone could help me out it would be really, really appreciated!!!

    You appear to have things displaying in outline mode.  There are a couple of places/ways this can happen. 
    The first, more obvious place is on the timeline.  If you look at the layer you are drawing in, at the end of the section where you name the layer you should see a small square.  That square controls the outline mode for that layer.  I cannot tell from the image you show if it is active or not, so try clicking on it to switch it between outline and not outline mode to see if that fixes things.  The color inside the square will be a solid color if it is not in outline mode.
    The second, less obvious place to look in via the top menu bar... select View -> Preview Mode -> and make sure Outlines is not selected.

  • Can't find my loaded content on itunes

    just got a computer with windows 8.  Started loading my albums to my itunes library.  All of the sudden I can't find my loaded content and can only see my purchased music in itunes.  It is still on the computer but I can not see it in itunes

      Thank you.  I see what you mean, and I'll use your method when I need apps. 
      For syncing my phone, however, I am automatically sent to the iTunes page, and to the sync/device screen I want.   After I sync, though, it's gone and I can't view my other details.  The only reliable way back there is to unplug the phone and plug it in again.  Fair enough, I guess.  But, weirdly, the little phone icon does sometimes show up (by the menu upper left) and will let me back in, but there's no rhyme or reason to when or why.  It's funny - kinda like some random game of Whack-a-Mole. 
      I appreciate you taking the time.  Cheers, -- Gordon180

Maybe you are looking for

  • "The disk could not be read from or written to"? Help!

    I was recently trying to update my ipod (5th gen. video) and sync it with my new music I downloaded, however the new songs would not sync and this error message came up: Attempting to compy to the disk "ipod" failed. The disk could not be read from o

  • Safari 5.1 keeps crashing- .CallOfDuty.tmp internet plugin

    Hi all, I'm running Safari 5.1 on OS X 10.6 and it keeps crahing at random times saying a problem occurred while running the internet plugin .CallOfDuty.tmp. I've tried deleting Safari and starting over but it still happens and when I try to follow t

  • Stored Procedure call to Oracle - issue

    hi , I am trying to call a receiver JDBC adapter to call an oracle stored procedure - I got this error -> java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call  - which I understand is related to mi

  • MobileMe unlink from iCloud

    in iCal I see everything twice, MobileMe and iCloud how can I unlink iCal of MobileMe and iCloud? In my iCal have now to deal with both. Can´t stop MobileMe calendar, if I switch it off it comes back when I receive or schedule a date, when I delete t

  • Python Launcher Broken

    Python Launcher that shipped with Leopard has been broken since release; which was a long time ago. It is not a bug either, the basic functionally of being able to launch a python program is not working at all. Is it going to get fixed? Any ideas whe