Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Global Table to Text

Return to Member Forum

  • Author
    Posts
    • #56274
      droddis
      Participant

      Hi everyone,

      I've looked through the existing forums and can't seem to find any discussion of this issue so here goes.

      I am putting together a catalogue based on 7 different companies and their products. One of the company's was kind enough to supply all their material in InDesign. At first thought I think YAY! This will be an easy addition, copy, paste, and apply my paragraph and character styes. However there is an issue.

      Some of the information I want to use is in table format. In an of itself not a big issue. However who ever designed the pages put multiple tables within a single text frame, meaning I can't do a global select then convert Table to Text. I need to select each of the tables within the text frame and then for each one I need to convert Table to Text.

      My question is this: Is there a way to convert all tables to text, regardless of number, within a single text frame?

      Thanks in advance for your help,

      David

    • #56275
      droddis
      Participant

      Sorry I forgot to add I'm on CS4.

    • #56277

      Sorry I forgot to add I'm on CS4.

      Oof! What a relief. The simple 6-line script I wrote works perfectly, in that it converts all tables that start in your currently selected text frame to text (a table that's partially in a previous frame will not, one that starts in the current and runs into the next frame will). But– as I was just checking out CS5 for possible bugs, and the table system did not change, I thought “well, let's just do it”.

      It does not work in CS5! Fortunately you thought of mentioning your version, but I'm gonna throw this spanner into the wheel of Adobe's scripting forum, just in case.

      Copy the script, paste into Adobe's ESTK Editor and then save as “tablestotext.jsx” in the Scripts folder.

      //DESCRIPTION:Convert Tables in Text Frame to text
      // A Jongware production
      // Jongware, 7-Jul-2010

      if (app.selection.length == 1 && app.selection[0] instanceof TextFrame && app.selection[0].tables)
      {
      last = app.selection[0].tables.length;
      while (last > 0)
      {
      last -= 1;
      app.selection[0].tables[last].convertToText();
      }
      }

    • #56278

      Knock me over with a moderately sized feather. Now it also works in CS5 …

      Must be because I just ran a lot of crashing scripts before this one, fouling up something Better Not Fouled Up in ID's memory.

    • #56289
      droddis
      Participant
      I'm reminded of the following quote:

      Any sufficiently advanced technology is indistinguishable from magic.

      Arthur C. Clarke, “Profiles of The Future”, 1961 (Clarke's third law

      Thank you so much, while I consider myself a proficient InDesign user help like you've provided shows me I still havea long way to go. You've saved me invaluable time and for that I thank you sir.

      Warmest Regards,

      David

    • #88879
      Kathy Cote
      Member

      Hi,
      is it possible to have each table in separately text frame for each ?

      I guess it’s more complicated?

      thanks

      Kathy

    • #88910

      Hi,

      I’ve written a script that extracts all the tables of a doc, creates a new doc with the pages number equals to the tables number, inserts each table one per page, resizes the page to table dimensions, saves the new doc … and finally (option) exports all the tables to individual .eps files (in a new folder + incremented numbering), all at the same level as the original doc!

      I’ve another script that just moves tables (less high that the page height) to inline text frames.

      Of course, not for free!

      (^/) ;-)

Viewing 6 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads