Can I use Find & Replace to change the fills and strokes of tables?

I'm working on a catalog that has a fair amount of tables, that all have the same color scheme.  I need to change all of these tables to a new color scheme, and I'd much rather find a way to do it with one shot.  The tables do not have styles applied to them, so it's not a matter of adjusting the style definitions.
I know you can do a Find & Replace for text or objects in a specific color. Is there a way to do the same for table cells?  I've tried but haven't had luck getting it to work.
Thanks!
-Sean

Congratulations are in place -- changing parameter names in the right places is one thing, finding out what parts safely can be copied is step 2 in my book "how to become a successful scripter in 10 easy steps"
You cannot select more than one table in Table mode, but what you can do is select them together with its surrounding text -- just keep on dragging that mouse until you've covered them all. The InDesign Selection is a multi-purpose object (see the way the script has to find out "what is selected"), and one of the things it keeps track of is how many and which tables are "inside" the selection. Then run this slightly amended script:
a = app.selection[0];if (a.tables.length == 0)
alert ("You must be kidding; not a single table inside your selection!");
exit(0);
for (b=0; b<app.selection[0].tables.length; b++)
d = app.selection[0].tables[b]; // shortcut
for (c=0; c<d.cells.length; c++)
  if (d.cells[c].fillColor == app.activeDocument.swatches.item("Bloo"))
   d.cells[c].fillColor = app.activeDocument.swatches.item("Redd");
  // .. Insert more colors here ..
Now the script doesn't have to check anymore in which part of the table you clicked; it only has to iterate over the ones in your selection, and those are "immediately" accessible through the indexes (the square bracketed variables). And the "shortcut" is so I don't have to type "app.selection[0].tables[b].cells[c].fillColor" every time. (And the script runs marginally faster as well, although it's probably still almost immediate.)

Similar Messages

  • Since I changed the operating system Windows 7 32bit to 64bit I can not use Firefox browser unless change the browser to safe mode.

    Since I changed the operating system Windows 7 32bit to 64bit I can not use Firefox browser unless change the browser to safe mode.When i start it the browser is not open and appears a message
    Mozilla Crash Reporter
    == Crash ID(s) ==
    20100611143157
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)

    the 20100611143157 is an update which won't instal automatically on my notebook

  • Problems with "no color" in the "Fill and Stroke"

    I am having problems with “no color” in the “Fill and Stroke” function of Flash CS4 Pro.
    I had been using CS4 for 10 days and everything worked fine. Then I tried experimenting with various color combinations (along with “no color”) for “Fill and Stroke” for a simple button. Suddenly CS4 locked up on me while I was working with the “color panel”. A second color panel appeared in the upper left corner and the program was not responding. All I could do was to end the CS4 task.
    After that, whenever I created even a simple rectangle, at first the colors would appear as indicated for “Fill and Stroke”, but when I selected the object to see its properties, either the stroke or the fill color box would have a red slash line, indicating a “no color”, and I couldn’t select the color box to change it using the ink bottle tool, although the other box worked fine.
    Rebooting did not help. So I uninstalled CS4 (and didn’t keep the preferences), rebooted, then reinstalled it. The problem was still there. Logging on as another user didn’t help. I tried restoring the Windows system to before I installed CS4 and resinstalling it and that didn’t work. I have a disfunctional CS4 now and I don’t know what to do to fix it. Please help me. Thank you.

    Have you updated flash to 10.0.2?  Have you played around with a bunch of different selections, objects, and so forth to see if this box is always incorrect?  I think there's some particular selection (order of selecting things, and so on), where the color swatches in one location don't work as expected. However, it should not happen all the time and from what I recall it was fairly easy to work around (I can't even figure out what this was - so probably not it, as it seems hard to run into or perhaps now fixed).
    Also make sure you have the stroke selected - if you don't have everything selected, either the fill or stroke will show no color and dim depending on the selection.

  • Can I use my javascript to change the session state of an item?

    All,
    I currently have a page that has two regions: a report and a checkbox region. The checkbox region is full of checkboxes that are tied to each column in the report. I have javascript in the page HTML header that hides/displays the report column when they click the corresponding checkbox. The hiding and displaying columns works just fine.
    Here is my problem: my users need to export the report (with some columns hidden) as a CSV file. Unfortunately, the javascript function I use to hide/show the columns does not change the session value of the checkbox region and thus, APEX does not 'know' that some columns have been hidden. Because of this, APEX exports ALL columns.
    Can I add an onChange to my javascript that each time the user checks/unchecks a box, it adds/removes that item from the checkbox region's session value?
    Thanks!
    BoilerUP
    P.S. I do not want to submit the page - I would like for this to be done on the fly, just like the columns hiding/appearing with the javascript. Thanks!
    Message was edited by:
    BoilerUP

    Ok, I still cannot get this to work. I keep getting a javascript page error (yellow exclamation icon in I.E.) I have the following code in the HTML header:
    <script language="JavaScript" type="text/javascript">
    function va_GetCheckboxes(pName)
    var d=document;
    var l_return = "";
    var inputs=d.body.getElementsByTagName('INPUT');
    var l_el;
    for (var j=0;j<inputs.length;j++) {
         l_el = inputs[j];
         if (l_el.type=="checkbox" && l_el.name && l_el.name==pName
             && l_el.checked) {
                l_return += ":" + l_el.value;
    return l_return.substring(1);
    </script>I also have the following code in the HTML Form Element Attributes section for the checkbox item:
    onclick="html_HideBasedOnCheckBox(this,this.value);set_Some_Item('P2_COLUMN_HIDE_CHECKBOXES',that_string)"Do I need to replace "that_string" with something or is there something else that I'm doing wrong?

  • HT204053 Can I use find my iPhone with the iCloud if I didn't  have it set up before I lost/ stolen iPhone

    My iPhone 4S was lost / stolen I don't think  I had iCloud on it for pictures on iCloud that were on my phone
    Number 2. Would I be able to use find my iPhone if I didn't activate the app before it was lost . Some one told me today they signed on and they were able to find their iPhone

    If the "Find My iPhone" was enabled in your iCloud Settings on your phone - it does not matter if you had the "App" on there or not. It will report, if it has not been deleted / restored / etc.
    Have you tried logging into http://www.icloud.com and see if your device is listed? If it is, then place your phone into "Lost Mode" and put a phone number where you can be reached.

  • How can i use find my iphone on the pc

    lost my phone do not have any other apple device how do I use find iphone app?

    www.icloud.com, login, then click on Find My Phone

  • YIkes....I can't seem to use my cursor to change the size and shape of my boxes!

    Okay, so I am very new at AI and I was working on an assigment for my class when the
    cursor quit giving me the option to resize anything!
    I have an assignment due tonight and I'm a little bit upset.  Does anybody know
    what I am talking about and what I need to do?

    Sounds like you turned off your bounding box.
    Command-shift-b on the mac is the toggle, or from the view menu - show bounding box.

  • HT2995 need help connecting headset with Macbook Pro  am using Rosetta Stone and my Mac tells me the internal microphone is being used though I have changed the internal and external settings.

    I'm a first time user of apple support.
    Have attempted to set up headset to use Rosetta stone.

    Hello & a warm welcome!
    Long shot, but...
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there.

  • I sent request to lock my iPhone because it was lost. Can I unlock it b/c now I can't use find my iphone

    I sent a request to lock my iPhone because it was lost. Can I unlock it because now I can't use finds my iPhone

    Welcome to the Apple Community.
    You can only unlock the device from the device itself. Locking the device does not stop it being tracked.

  • How to change the look and feel for Heading of quick launch menu in project server 2010

    Hi
    can someone tell me how to change the look and feel of Header names in quick launch.
    I want the header to be displayed in Bold with Underline to it.
    could this be possible for just header in quick launch in project server 2010. 

    Hi Rohan
    It does not work this way. You have to use a content editor webpart.
    See references below that might help you starting with this customisation:
    Http://go4answers.webhost4life.com/Example/sharepoint-2010-quick-launch-look-feel-78379.aspx
    Http://m.sharepointpromag.com/sharepoint/four-ways-add-or-remove-quick-launch-menu-control
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • How to change the font and type in the front panel

    Can you tell me how to change the font and type in the front panel if i want to make it looks more beautiful.
    1110340040

    Hi there,
    You can change the font size and type as shown below:
    - Ee Lim -
    See that button on the left side of this post...
    If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~

  • Changing the font and color of html email codes

    I have used some codes from some of you that do protect my email address from bots so for that I am thankful. However, they all come in standard blue with the same font of which I would like to change both. Here is an example of the code that I am using, how would I change the color and font??
    Contact Me
    <script type='text/javascript'>
    Assemble Obfuscated email address and set div id='contactMe' href
    ObsArray = new Array();
    ObsArray.push('mai');
    ObsArray.push('lto');
    ObsArray.push(':');
    ObsArray.push('my'); // your break up email address starts here
    ObsArray.push('name');
    ObsArray.push('@');
    ObsArray.push('mac');
    ObsArray.push('.');
    ObsArray.push('com'); // your break up email address ends here
    function setContactMe() {
    var ObfuscatedHref = '';
    for (ii=0; ii<ObsArray.length; ii++) {
    ObfuscatedHref += ObsArray[ii];
    document.getElementById('contactMe').href = ObfuscatedHref;
    chkEmail = setInterval('checkEmail()', 100);
    function checkEmail() {
    if (document.getElementById('contactMe') != null) {
    setContactMe();
    clearInterval(chkEmail);
    </script>

    p id="contact" Contact Me use < and />either side of p and contact me - sorry couldn't get the text to show correctly.
    <script type='text/javascript'>
    Assemble Obfuscated email address and set div id='contactMe' href
    ObsArray = new Array();
    ObsArray.push('mai');
    ObsArray.push('lto');
    ObsArray.push(':');
    ObsArray.push('my'); // your break up email address starts here
    ObsArray.push('name');
    ObsArray.push('@');
    ObsArray.push('mac');
    ObsArray.push('.');
    ObsArray.push('com'); // your break up email address ends here
    function setContactMe() {
    var ObfuscatedHref = '';
    for (ii=0; ii<ObsArray.length; ii++) {
    ObfuscatedHref += ObsArrayii;
    document.getElementById('contactMe').href = ObfuscatedHref;
    chkEmail = setInterval('checkEmail()', 100);
    function checkEmail() {
    if (document.getElementById('contactMe') != null) {
    setContactMe();
    clearInterval(chkEmail);
    </script>
    <style type="text/css">
    p#contact
    font-size: 2em;
    color: #336699;
    </style>
    Just change the style into something suitable worked for me.
    Message was edited by: Hazell

  • Expanding the appearance of live transform breaks up fill and stroke

    Okay, so I never ever use Effect > Distort & Transform > Transform, but with all the hubbub about the stroke scaling bugs in Illustrator CC 2014, I've been fiddling with it lately, and I'm confounded by something: once you perform a "live" transformation of an object, how do you expand the transformation so it's not live anymore, while retaining the integrity of your object? When I use Object > Expand Appearance, it breaks the fill and stroke of the object into two objects. Am I doing it wrong, or is this a bug?
    This can't be the normal behavior, since it is impossible to expand the appearance of an ordinary stroked/filled object (the menu item is grayed out).

    I can't accept that; the two issues remain:
    1) How do you expand/commit the transformation so it's not live anymore, while retaining the integrity of your object? If you can't, that's ridiculous.
    2) If this was the normal behavior, then you ought to be able to separate the fill from the stroke on a newly-created shape with Expand Appearance as well, but you can't because it's grayed out.
    Furthermore, common sense dictates that the user would rarely—if ever—want their shapes to be exploded like that. Seems more like an egregious oversight than "normal" behavior.

  • Can't use Find My Friends on iPhone due to Apple ID not being verified. Can't do this as I can't access my .mac email any longer and I can not change the primary e-mail address for my Apple ID!

    Can't use Find My Friends on iPhone due to Apple ID not being verified.
    Can't do this as I can't access my .mac email any longer and I can not change the primary e-mail address for my Apple ID!
    So my options are:
    Create a new Apple ID, use that and lose all the apps I've purhcased with it (a fairly substantial amount)
    Somehow Migrate these purchases over to a new Apple ID
    Apple let me change the primary ID for the account
    Anyone else ran into this before?
    I've tried accessing the mail through a mail application using the correct server information, and trying both the old 6 character password and the one I had to change it too after they updated the security guidelines - neither work.
    Help would be greatly appreciated as I can see more services down the line not working without the address being verified!

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You should not need to verify the old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the bad template with a blank.

    I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the unwanted template with a blank. It was previously possible to go to MY TEMPLATES and remove the unwanted templates. I don't if this issue is before or since installation of 10.8 (a nightmare in my case, which led to significant failure issues).  And because I haven't tried to remove templates since finally managing to install 10.8 (now at 10.8.4), I don't know if this is typical of the newer OS or a problem. I've been a Mac user for more than 25 years, but I think I'm nearing the end of the road. By the way, I've never needed to do this before because the manuals always offered an answer... they don't seem to do that anymore. In any case, I don't know how this works... I'd prefer an email reply if that's possible. But that would probably be too easy, and I don't know how to get a reply.

    Thanks, I appreciate the help.  I think this is one of the problems Apple is creating by changing the OS so often. I had fomer colleagues at [a major aerospace contractor] who told me that so many original files were ultimately lost because of the deadly change in the "Save As" operation that they are now afraid of every OS update. Apple has badly damaged their support base with that very prominent company (they won't update now until they've fully examined and understand changes in the pre-conditioned nature of OS computer functions), and they are a whole lot less enthaled with Mac-related equipment/software. Can't blame them, I too used orginal files that way (as easy-to-use templates), and lost some important files before I realized what was happening (to late to revert). Companies should not have to retrain employees each time an OS gets an update, it's can be very expensive several different ways. They learned a painful lesson with that one. And because I'm now retired and don't use multiple devices, I need iCloud like I need a hole in the head... but I'm told there's no way to keep Apple out of my computer. Fortunately, because of major problems when initially installing Mountain Lion, one hold-over of the hardware/software damage I experienced was that iCloud can no longer access my computer even though everything else is working fine again. That was the only "good luck" I had as a result of that expensive nightmare.

Maybe you are looking for

  • HTTP 401 error while connecting SAP PI 7.1 with SOAPAdapter

    Hello, I am trying to call webservice on R/3 system using SAP PI 7.1 but I am getting HTTP 401 error. Following is the error for more detail: Message: Server returned error code = 401 for URI : http://sapxx03x:50000/XISOAPAdapter/MessageServlet?chann

  • Jato 1.1 to Jato 1.2

    Hi, we are doing a migration project that includes Jato 1.1 to Jato 1.2. what are the issues and problems for doing this conversion. And any one did it previously.

  • Previewing 5D Mark II RAW files in CS4 Bridge

    I have just updated to the 5.7 version of RAW for my CS4, but I still can't preview them in Bridge.  Any suggestions or remedies?  Please HELP!!

  • Is in Solaris 9 something like UpdateMangaer in Solairs 10?

    Hi, I am Solaris 10 user on SPARC. But recently I started using Solaris 9 U9 and I am looking something like UpdateManager in Solaris 10. Is in Solaris 9 such tool? I am asking because I would like to install the latest patches on Solaris 9. Kind reg

  • Having issues pushing a simple batch

    I have a simple batch that I am trying to deploy and run.  It runs an .exe on the client.  Although SCCM give me a success notification it never actually runs the .exe.  I am running it as the admin, whether a user is logged in or not and outside the