Set the same width of all tables in a document

Hello world. I have a document with a large number of tables (in a doc 2 columns) and wanting all the tables have width = 90.

I found here a script witch (Dave_Saunders) , you can set the sith to a selected table, but I need to fix for all talbes document (about 700).

Dave script relates to this post: tables: adapt the content to the framework

Can someone help me automate this change in the width of the Tables.

Mention that the first cell of the tables have the same content, the word "reference".

Thanks in advance!

Try this,

if ((app.documents.length == 0) || (app.selection.length == 0)) { beep() }
aDoc = app.activeDocument;
tWidth = prompt("Table width", String("000"));
for (s=0; s= 0; j--) {
          aTable.columns[j].width = aTable.columns[j].width * (tWidth)/w;
        }
    }
}

function findTable(obj) {
  if (obj.constructor.name == "Table") { return obj }
  while (obj.constructor.name != "Table") {
    obj = obj.parent;
    if (obj.constructor.name == "Application") {
      errorExit("Can't locate table");
    }
  }
  return obj;
} 

function errorExit(message) {
  if (arguments.length > 0) {
    if (app.version != 3) { beep() } // CS2 includes beep() function.
    alert(message);
  }
  exit(); // CS exits with a beep; CS2 exits silently.
}

Tags: InDesign

Similar Questions

  • Do all the pages of the same width?

    I've seen several answers to this question, but they seem to all involved to use an external application such as PDF Creator, distilling or something like that.

    I have a PDF with three pages of different widths.  Of in Acrobat X, what is the best way to do all three pages of the same width, or is it still possible without using an external application?  If possible, please describe how to proceed step by step.

    Also, I know there are measures that can be taken to avoid ending with pdf files that use pages of different lengths, but this question is not on this topic.  It comes to existing pdf.  Thank you very much

    I use the version of Adobe Acrobat X 10.0.0.396 on Windows XP Pro SP3

    You can use the crop tool to set all pages on one size. However, you can choose the size of the page.

  • Tables set the column width

    I took someone else's code and have problems with the width of the columns in a table for sizing.

    I have a table to create three columns of work. The table is 905px wide and I want column 140, 350, and the rest in width.

    If I put these values < td width = "140"... > etc., while they seem to be neglected, and the three columns are all the same width.

    It seems fine in design mode but not in Live View or published. Can someone help me to overcome this please?

    Thank you very much.

    1. Tables in HTML behave in their own way and you do not guarantee the width of columns
    2. Do not specify the widths of cell via (attributes) HTML).
      The width attribute in thetag is obsolete (the browsers are not required to support or to obey) and it was always a recommendation to the browser in any case, it was never a precise measurement are met.
    3. Learn how to your tables with CSS style

    See

    http://Veerle.Duoh.com/blog/comments/a_css_styled_table/

    http://www.ehow.com/how_2082412_style-table-CSS.html

    the http://www.google.com.au/Search?SourceId=navclient&ie=UTF-8&rlz=1T4ADFA_enAU351AU351&q=sty + tables + with + css

  • Find the table if element have the same element in all indexes

    Hello

    I need to check if a table have the same element in all its indexes. (Example: an array of size 4, should have index 0... 3 1 and during the next iteration index whether no. 2 overall indexes...) How can I check if all indexes have same number)

    Attached to the VI I did.

    Anyone can offer better than this.

    get the first element, compare it with the hole dashboard, AND all items

  • Set the same dimensions to several objects

    Is there a way how I could put the same width and height to several objects selected with different dimensions? I don't want to go through all these objects one after the other and set the size manually... Maybe a script would be available? See the example below. Thank you

    test-01.jpg

    Try the script set all things by wundes

    Wundes.com

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • I would like to create a site of muse with the same width as my first site

    The site is http://kellyanguyen.com/. When I create a new Muse file what should I set the width as so it will be of the same width as http://kellyanguyen.com/? Thank you.

    The default definition of 960 pixels Muse looks like for me.

    Keep in mind the current site is sensitive, which is not supported in Muse right now.

  • How to have the same widths on layout of small products

    When there is less than 4 products in a row, they take the width of the entire line, some larger than others product manufacturing. I want to make the same widths each time even if there is less than 4 products in a row. Is there a way to do this in British Colombia? I tried CSS to make this work, but without success. Any help would be greatly appreciated. Thank you.

    I gave the question a little more reflection and did some research to solve this problem. Yes, I was working with tables.

    I added some jQuery to give the row in the table a colspan of 4, then I added css to the table to make the fixed layout. That seemed to do the trick. Thanks for your response. It took me a few days to think the solution for this.

  • Copy the selection to the same position in all frames roto

    I use AE CS5 in Production Premium. I also moca AE 3.1 which is perhaps a better way to try to isolate an object using planar tracking.  I need to replace an item that appears in the same position on all frames of a clip.  He is a previous problem I've covered long involving a spiders Web that has been set on a 8mm film door.  Thus, the web appears in the upper left corner of each image in the clip.  Perhaps a different approach will work.  It is complicated because the background of the element changes such as the limits of the selected item are dimmed.  I need to further isolate sections of the clip where there are similar background interference, for example a background of mostly from the dark trees in the left upper part may be passable.  There may be a way that I can gradually replace the web with the background that appears in the following images as the background moves using duplicate layers.

    How I can roto select this item in the first image and copy the limits of selection to all executives or is there a better way to do this?

    How I can roto select this item in the first image and copy the limits of selection to all executives or is there a better way to do this?

    You do not have. You think on bad terms here and work yourself to death if you follow this approach. Instead, export an image, isolate the model clean grey scale as an image in Photoshop. Then you can either use it as cache to perforate disturbances directly or by creating adequate transparency, possibly in a publication before using it as a pole of luma on a white solid, like an entry for one adjustment layer. Then, you can eitehr just fill in the blanks with a copy of your pictures that you have slightly shifted in position or in the second case, apply effects such as Minimax, dilated-eroded repetitive and varius scrambles to fill gaps. CC vector Gaussian with the transparency as input channel will do miracles "sew" these things together. Of course, you can also consider RevisionFX' RE: fill out as kind of a plugin tool in canned and pimp for these kinds of things...

    Mylenium

  • Implementation of the same width and the height of the Panel?

    Y at - it an easy way to set the width and height of an application < mx:Application > to the same width and height as the Panel <mx:Panel>. Whenever I try, I get scroll bars. It seems that there is a margin or padding built into Flex even if it is not listed in the css file. Any help or a point in the right direction would be very useful. Thank you!

    I think so:

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • set the column width in a report

    Hello

    Is there a way to set the column width...

    In a region of the page, I have 3 reports (showing the same data fields, divided into different categories), but due to the length of variable data, the column widths are variable...

    Please correct them advice...

    Thank you

    http://forums.Oracle.com/forums/help/search-tips.html

  • How to set the focus to an af:table on the loading of the page?

    Hello

    In my page jspx, I want to be able to set the focus to an af:table. I have several tables in this page. All my paintings are based on display of read-only objects.
    I want to guide the user by highlighting a line in the af: table.

    Any ideas? Solutions?

    Thank you
    Jagadish.

    Published by: jaggu_otn on October 23, 2009 06:29

    Published by: jaggu_otn on October 23, 2009 06:33

    Try this, ITI, speaks of "Setting the focus to a particular field..."

    http://technology.amis.nl/blog/2771/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2

  • How do you assign at the same speed for all the notes?

    Hi all!  Can any one help with how to assign the same speed to all the notes?  I know that press "Command + A" to select all, but stay to discover how to get more than one note to change both?  Thank you!

    in piano roll, select velocity tool, cmd to select all notes, hold SHIFT-Option and drag upwards or downwards.

  • is it possible to set the background color of a table or chart to be transparent?

    is it possible to set the background color of a table or chart to be transparent?

    Thank you

    Yes.

    Select tools palette (view > tool palette) and set the background of the graph as well as the control in transperent.

  • How to set the column width fixed in IR APEX 5

    Hello

    Is it possible to resolve to a specific column of an interactive report on a fixed width?

    Thank you

    Jos

    Jos Dols says:

    Theme: 42

    The column value contains HTML tags, so I updated the property escape special characters No..

    However, because of the value column extends out of the window so that the user must scroll to the right to view the columns of the other/next:

    So I want to report column width be less than 100%.

    Add a static ID to the IR column and set the column width required using a style sheet in CSS Inline property page:

    th#static-id,
    td[headers="static-id"] {
      width: 16em;
    }
    

Maybe you are looking for