AS3, ID3: Find a table on a page to copy the text it contains

In my script, I need to go to a table on the current InDesign page and access the info inside by simply copying the text of the entire table. I know that there must be sort of extremely easy to do, but how? The cells in the table all use the same paragraph style, and the table is in the block of text has a label. I find the paragraph style, then somehow, refer to its parent company or something?

Little tricky for me seems to say my script to find table on the page and selecting, because as soon as I can do, I guess I can just change the table to access all the data of the text.

I am using Applescript in InDesign CS3. Thank you.

If the text block is labeled "Blah", you can get the table with:

Table 1 of the text block "Blah".

If you ask:

contained in table 1 of the text frame "Blah".

You will get a list of the content that appears in each cell.

Tags: InDesign

Similar Questions

  • Table of contents, Page number on the left if the tab is too short

    Sorry about the title of coplex, couldn't happen to a better.

    Is there a solution to the table of contents of style then the page number never ends on the left side? Everything works fine if the topics listed in the TOC spans on one or more lines.

    But if the listed topic ends exactly at the end of a line (in the table of contents), the page number appears on the left side of the next line. (I have a ^ t between the entrance and the number in the table of contents style.) If a single word in flows in the line below, the table of contents correctly adds the... (dotted) and place the pagenumber to the right.

    Can I modify the paragraph Style from table of contents or TOC Style so that the number is right-aligned, even if there is no prior entry (which is on the line above).

    Example of the problem:

    Correct / Normal... 1
    This title is exact a row of table of contents
    2

    I would also put the option "Balance unbalanced lines.

  • I was entering numbers in a table of existing pages and suddenly the formatting has changed and I can't type numbers the way I need too.  How to fix this?

    I was entering numbers in a chart in Pages to update the information and all of a sudden the cells do not have the formatting that I want.  It's changing the way numbers which I type them, and I don't know why or what to do?

    Hi Slf@LF,

    Numbers and pages are trying to be smart and recognize wht kind of data that you enter. If you enter something that resembles a date they will treat it as such. Some people have problems with serial numbers because programs to format their numbers and not text.

    View the data that you are trying to enter and how it's changed and we ca probably to understand what is happening to her.

    Quinn

  • Table goes out of alignment in the text box

    I created a very simple table in InDesign CS5 on Windows 7, like this:

    1.png

    However, when you start typing in a cell, it goes like this:

    2.png

    To fix, you make the text bigger or smaller box and then resize it to what it is supposed to be. Also when I do a first page datamerge moves like that too, even if the rest is correct. When you export to PDF it comes out wrong as well. If anyone wants an example file that I can post it here.

    Anyone have any ideas what's causing the alignment change when text is entered into the table?

    Well, I think I see here the rub - if you left me speechless for a while there!

    So, I see that you have the text box that contains your table to help you align your table in the center of your page. (i.e. the box containing the text is organized around the outside of the page and the table is centered lef/right using point centering and up/down by using the command "Center" in the control bar. There is nothing particularly wrong with this method, I think it may be the source of your problems with alignment change unexpectedly.

    Looking at your file, I found that the removal of "Center" and change to the opposite to "align top" took the nervous behavior of the text box. It is more shifted when I tried to type. He however move the entire table to the top of the screen. For now we'll leave it there. Align the Page: Centre from left to right, Center t to b.

    Your final result should be an element that is always perfectly centered on the page, but which can be of type in without any unpredictable jump around!

    Now, we will select the entire area that contains the table. In the paragraph Panel, click "Left aligned". This will move the table to the top left of your document. Now, frame content. Go in the Align Panel.

  • On two pc's, 1 Wired kb & maus, 1 wireless, they had to keep - right click on the page - to keep the text page & scroll operation. Difficulty?

    Have two Dell optiplex home computers. The two same operating system windows 7. Use a wired keyboard and mouse and the other wireless.
    On Web pages only using the same browser firefox on both pc, keyboard entry text constantly updated in a dialog box like this one and to use the scrolling of the mouse or the keyboard, the mouse has to right click on the page to reactivate the scrolling or entering text.
    This most often happens on web pages than others, and the problem is the same on both PCs. Used to access the internet wireless modem.

    The result is very encouraging to do exactly what is suggested.

    I've had the mode without failure for an hour now and there is no re-emergence of the issue of page web text of scrolling/entry so far. I'm now working my way through the process of elimination and will do the same for the other pc and report today come back later.

  • Cannot read e-mail messages Hotmail, I get the frame of page but not the text of the E-mail

    Dear anyone.

    Since May 4, I was unable to read Hotmail emails in Firefox, I had to download Google Chrome just to read emails (yuck!) Before May 4, everything was fine. Now, I get the page frame, i.e. the part that said Hotmail to the top my list of Email subfolders to the bottom of the left side and the text of Microsoft on the bottom. The central area, which must contain the text of the may E real (and graphics of course if there is) is empty. I tried clear the cache and history, clear cookies, just like that, no joy.

    What has been the change suddenly from Hotmail, which has caused this? It is NOT a change in Firefox that I have not changed my version and it worked perfectly until today, may 4.

    Your puzzledly

    ulrichburke

    Sorry to disappoint you, but I'm a man. But thank you for your comment.

    Could you please mark this issue as RESOLVED for other users can come here to get the solution?

    Thank you.

  • my favicon does not appear. in information-> media-> Type page, it reads the text/html, while it takes read icon. What can I do?

    I made a webpage in dreamweaver cs 5 and used this code to the favicon: < link rel = "shortcut icon" href = ' _images/logo - favicon.ico "/ >
    When I previsualisez in dreamweaver in the firefox browser, it is displayed correctly. However, it does not display when I visit the actual page. I followed the instructions of troubleshooting here on firefox who said that, when you go to tools, then the Info Page, then clicking on the media, the Type must be read as an icon. Instead it reads the text / Html. could this be the culprit?

    You're welcome, please mark this as RESOLVED issue.

  • can I change the indents on Master Page without changing the text on the pages already finished?

    Hello

    With the help of experts on this forum, I corrected some problems of dash/tab on my two Master Pages.

    Here's the thing, though - it screwed up the four pages that I already created (and then manually set): the text in the placeholder on the top right text that I had already added to these pages and did other things also.

    I need to create Master Pages to use for all new pages I create in the future?  Or is it possible to set a Master Page and then tell InDesign to apply these changes to the new page I create, but to leave alone the pages already created?

    Thank you, Malcolm

    If the pages need to be different, you can create a new master page for each of these appearances. Conversely, if it's just a one-time deviation from the master, you could click the document page and choose replace all elements of Master Page in the Pages panel menu. The duplicate text boxes that you see is because you have redone the master to the pages of the document. This could be avoided by setting the text frame on the Master Page as a main text block. Who help me?

  • Copy the text in Framemaker 10 table cells

    I want to copy the contents of multiple cells in a table to another table in the same document. How can I do this so that the text is copied in several cells again and not all content in a single cell?

    Margot

    Normally, make sure that you select the same array of cells in the source table and destination. If they don't match, geometrically, it may not work. This might happen, for example, if you have an overlap in one but not the other.

    If the arrays must have the same content for certain cells, in the future, consider having the cells from the clone table fill cells shared with cross-references in paragraph text, the main table. Then the main table changes, made the clone.

  • Copy the text of form field text box on another page

    Hi all

    I'm designing a document using Muse who, in a wizard-esque fashion, get the user to fill the fields of the form, and then the text entered in form fields is automatically filled fields of text on other pages so that a customized document can be printed.

    However, research, I made, I have not found anything I can use other than using PHP code style but I can't juxtapose that to bring the value of text to another page instead of an email.

    Any help would be greatly appreciated.

    Thank you, in advance.

    You need to add a custom to your form code to achieve this.

    These links will give you the correct answer:

    http://StackOverflow.com/questions/18474499/auto-populate-field-base-on-what-was-entered-i n - one other-field-simultaneously

    http://StackOverflow.com/questions/11660395/how-to-Autopopulate-an-HTML-form-and-submit-it - instantly

    http://icode4you.NET/website-forms-use-JavaScript-to-auto-fill-one-field-with-the-values-f rom-two-others-fields.

    If you use Adobe server for hosting your site, this document will allow:

    Customization of Web Forms

    Thank you

    Sanjit

  • When I click on a Web page (especially near the text), the cursor blinks on the Web page where I clicked! Is this normal with Firefox v50.0.2?

    When I click anywhere near the text in a webpage the cursor flashes here where I clicked. Is this normal with Firefox v50.0.2 or something wrong with my pc?

    Looks like "keyboard navigation" which allows you to navigate through the text of a document with the top and down arrow keys. The F7 function key activates the navigation with the keyboard on and outside. Or you can use the Options page, the accessibility section. See: Advanced panel - accessibility, navigation, network, updates and other settings in advanced Firefox.

    Was she?

  • Able to add colspan with jQuery to table on one page, but not the other.

    I am able to use jQuery to add an attribute colspan to one of the rows in the table on a regular with products catalog page, but when I try to do a catalog that has instead of product catalogs, I see not the colspan attribute when I inspect the lines of the table.

    The catalog I'm talking about is http://www.thesanfordcenter.NET/suite-menu . The catalogue is secure. I have set up a temporary account and a password if you want to view the pages.

    ID: test

    Password: account 1

    I wonder if this is a problem with my jQuery or maybe what layout, I have jQuery on. Any help would be appreciated. Thank you.

    This page has some errors coming JavaScript on it.  If you press Ctrl-Shift-J or Cmd-Shift-J on a Mac in Google Chrome you will bring up the javascript console.  Anything in red is usually a javascript error or a 404 error for assets that are not found... you should always try to clean them.

    In this case, your "expstickybar.js" file is loaded on this page, and he introduces a "jQuery.noConflict (); statement that basically removes the possibility of using the variable ' $' as a quick trigger jQuery methods.  This is not the case on the pages of your catalogue main is because you only reference this script with a relative url: 'expstickybar.js', so when you are on your catalog at http://www.thesanfordcenter.net/suite-menu/appetizers page then it is looking for your javascript to http://www.thesanfordcenter.net/suite-menu/appetizers/expstickybar.js files so it is not find it is coming as a 404 error.

    A fast solution would probably be to try to remove or comment on this first line in expstickybar.js that says "jQuery.noConflict ();".  This might work, but it is also possible that it will break your expstickybar.js script. If this does not work, you should probably go into each of your statements of jQuery in your pages and wrap them up in a function that explicitly said to use the variable "$" for jQuery:

    (function ($) {}

    YOUR OLD JAVASCRIPT HERE

    (}) (jQuery);

    On a side note, also included two libraries jQuery in your site and that is never a good idea... you have jQuery 1.4.2 loading in the HEAD of your page or the page template and then you are also to load jQuery 1.6.2 in the BODY of your page or your page template.  You must use one or the other.  1.4.2 is old enough now, so if I was you, after you try to correct the mistake of jQuery.noConflict () you have got going, you need to move this jQuery 1.6.2 reference in your BODY element and replace it with jQuery 1.4.2 marked in your HEAD.

    Also - you should change your reference in your page templates to make the "expstickybar.js" a URL relative to the root instead of a relative URL of the file.  Change:

  • I've just upgraded to the latest version and find I can no longer highlight and copy the addresses of the browser window. Why not?

    I tried to find a solution to this problem so long I forgot what triggered it. Anyway, I'm used to being able to cut and paste from the window of the active tab, and now I can't. It is very annoying (if this is probably not the kind of information you need). It's as if, once an address in the browser, it is locked and cannot be manipulated in some way. This can be corrected?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • Browse through the pages and add the text box

    I'm trying to navigate through the pages of a document (to simplify, let's say there are 5 pages) and perform certain tasks (for simplicity, say add a text box) on each page.

    Using VBScript, my thoughts are something like:

    Define myPages = myDocument.Pages

    I have = 1

    do until I have 5 >

    myPages.Item (i). Select()

    Set myTextFrame = myDocument.ActivePage.TextFrames.Add

    myTextFrame.Contents = "Hello, World".

    i = i + 1

    loop


    should work.


    But the best I can do (when I'm not getting syntax error messages) is to get the written text several times on one page.


    I know that there is a simple solution that I'm missing.


    Any suggestions?


    Thank you.

    You should probably add () after adding

    P.

  • Using a little code on Master Page to fill the page names in the text box?

    I was wondering if Muse has any codes that you might put in a box of text on the main Page so that all pages using this master to have their name filled in automatically on this page (e.g. a Page title - about us, Contact, etc.) instead of manually add a text box on each page in a particular space. The short code would make reference in the name of the page on the Site Plan and fill in this text on the page.

    I tried searching using different formulations, but have not found solutions to this particular problem.

    Thanks in advance for your suggestions.

    You can use getfunction to pull up the page title and display it on the page, if it is only on display name of current page on the body of the page, insert this code into html master page properties:

    Thank you

    Sanjit

Maybe you are looking for