is now part of CreativePro.com!

New Must-Have Table Script for InDesign

8

InDesign has long offered users the ability to save and apply some kinds of table formatting in the form of table styles and cell styles. However, most users are surprised and disappointed when they learn how limited these styles are. For example, one of the most obvious things you’d want to control with a style is the width of columns. Unfortunately, there’s no feature in InDesign for this. But as with many of InDesign’s shortcomings, there’s a script that can help. Written by Gerald Singelmann, the script is called Auto Column. You can read about it and download it from Github.

When you have your cursor in a table cell you can run the script. You’ll be presented with a dialog where you can set the exact width of each column, or set it to “Auto”.

After applying the set column values, the script will divide the remaining table width among the “Auto” columns.

Just the ability to quickly set all column widths this way is pretty nifty, but the script does something even better. It allows you to store the column width settings in the table style applied to the table you’re working with. After you’ve done that you can put your cursor in another table with the same style applied, re-run the script and choose Load From Style. Voila! All the column widths are the same as the table you saved them from.

Until the day comes when InDesign’s table styles include column widths, this script is a wonderful tool for anyone who has to work with a lot of tables in InDesign. Thank you, Gerald!

Editor in Chief of CreativePro. Instructor at LinkedIn Learning with courses on InDesign, Illustrator, Photoshop, GIMP, Inkscape, and Affinity Publisher. Co-author of The Photoshop Visual Quickstart Guide with Nigel French.
  • Mike Witherell says:

    Gerald, you are BRILLIANT! Thank you so much!

  • David Creamer says:

    Nice! Thanks.

    For those that want even _more_ table features including saving column/row width, formulas, and sorting (and have money to spare!), there is Woodwing Smart Styles .

  • Mike Z says:

    Did not see where you actually download this script on Github. Is the a link to the actual .jsx file?
    Thanks

  • Ana Do Carmo says:

    Thank you. This is awesome.

  • Colin Flashman says:

    I don’t know about being new as I’ve had this script for quite some time, but it is certainly good to see it being featured here – certainly saved me tons of time. If the script is to ever be tweaked or updated in future, I’d love to see additional checkboxes for “apply to all tables” or “apply to all tables of style”.

  • Aaron A says:

    This script is a godsend! Thanks for informing us, Mike! (FYI, don’t make the mistake I made and try to download the jsx file from GitHub using ‘Save Link As’ — that’ll put the whole web page in the script. You can just copy the script text and paste into a text file.)

  • Raphael Freeman says:

    Been using this script for quite some time. It’s excellent.

  • Els Ruiters says:

    Hi there, I’m an avid fan of scripts, and I am using quite a few. But when I download the jsx from Github I get an error in InDesign. *Fout means error in Dutch, by the way.
    It starts with: >>>
    JavaScript Fout:

    Foutnummer: 23
    Fouttekenreeks: & does not have a value

    Engine: main
    Bestand: /Applications/Adobe InDesign 2022/Scripts/Scripts Panel/Samples/JavaScript/AutoSpalte2.jsx
    Regel: 28
    Bron: <meta name="optimizely-datafile" content="{"groups": [], "environmentKey": "production", "rollouts": [], "typedAudiences": [], "projectId": "16737760170", "variables": [], <<

    And so on…
    So how can I get this script to work?

  • >