Set table-columns numerically II

I recently published a startup script that allows you the set the width of tablecolumns numerically. Today I am happy to announce that version 2.0.0 is available. The main advantages of 2.0 are a) improved interactivity by using ScriptUI and b) the ability to save the desired widths in the applied table style.

I recently published a startup script that allows you the set the width of tablecolumns numerically. Today I am happy to announce that version 2.0.0 is available. The main advantages of 2.0 are a) improved interactivity by using ScriptUI and b) the ability to save the desired widths in the applied table style.

"AutoColumn2" is an archive containing two scripts. Put the jsx file into the Startup Scripts Folder inside the application’s folder. It creates the menu command every time InDesign launches. Put the jsxbin file into the root of your user’s Scripts Panel folder. It does the main work and can also be called from the script panel or by keyboard shortcut, if you are so inclined as to assign shortcuts to scripts.

Assuming this is the active table, then AutoColumn will open like this. (The screenshots are german, the script should show up as english on an english system. If anyone cares to give me french or other translations I'd be happy to include them.)

The dialog will get rather large the more columns are inside the table. It probably won't play nicely with tables of 20 columns or more.

At the top of each dialog column you'll find number and below as static text the current width. Then comes the target width either manually entered or automatically calculated (checkbox below).

The calculation is such that the entire table is as wide as the text-column is it in.

As soon as you turn on one or more "Auto"-checkboxes the value of the corresponting fields is immediately re-calculated. The same when you change a manual value.

The two buttons "All on" and "All off" turn on or off all "Auto"-checkboxes.

If you click "OK" when the option "Save in Style..." is turned on all the entered values are saved in the applied TableStyle, including the fact if a field is set to "Auto" or not.

As soon as you have done that once for a style in the current document, the next time you open the dialog for a table of the same style the "Load from Style" button is active, allowing you to load all textedit fields.

Kommentare

Does not work in InDesign CC 2015

Hello: The script gives me an error 21 (undefined is not an object), saying there is something wrong in line 14 Any clues? Thank you!

fit the column with text

I want script at indesign, witch is work for fitting the column as text. help me. by the way I cant download your script
sepehri

Very good!

The script is very good. Can you add a button that will produce two steps: 1. Load from Style 2. Apply it to table? And add to this button keyboard shortcut? if you do it, the script will be a GREAT!

Doesn't work for CS3.

Doesn't work for CS3. Hello, Gerald. This script doesn't work for CS3. Whether it is possible to change it that it worked for CS3? Probably there is other script with similar functionality for CS3? Thanks, Yan.

Does work for CS3

Works fine here. No idea what’s the problem on your computer :(

Work for CS3

The script reports: " JavaScript error! Error number: 25 Error message: It is expected: ; Line: 1 Source: @JSXBIN@ES@2.0@MyBbyBnABMBbyBn0AKJEnASzLjTiBjVjUjPiDjPjMjVjNjOBAWzGiPjCjKjFjDjUC Problem text: .0 " There is a script in a format *.JSX?

Well, I never...

Apologies for my misinformation.
 
Could you give the archive another shot? I replaced the faulty jsxbin with a version that does in fact work (on my computer)

Works at CS3

Thanks to you.

Not working for me

I do not receive any error at startup. However, the script will not load and I get a java script error saying: error number 21 Any solutions?
Abdur

International English localisation

Hi Gerald,

I think I might have found an issue with the script for people who have the International English version of InDesign CS5 installed. I receive a series of JavaScript Errors when launching InDesign... however, after I changed line-3 "en" to "en_gb" in loadAutoSpalte.jsx the script works fine.

I'm hoping to show off your script tonight at the Perth InDesign User Group meeting :)

Regards,

Cari.
www.carijansen.com

hi Gerald, I spoke too

hi Gerald, I spoke too soon... got the script working, but still throwing errors on InDesign launch. I'll shoot you through some screenshots tonight when I'm back in the office. Cheers, Cari

Now also in Italian

Paolo provided me with the italian strings so now the zip above will automatically recognize an italian InDesign.

Thank you Paolo :)

Auto columns

Thank you, Gerald.
A powerful script to avoid manual handling by trial and error.

Happy new year, gifted grepmann

Camilo

first bugfix

In the verson I posted yesterday there was a bug that caused a JavaScript error on startup.
I fixed the zip, so if you care to reload the link above you should be able to use AutoColumns without error message.
Thank you

Great! This script is

Great!
This script is powerful!
How can I help you with Italian localization? Let me know

Paolo Carnovalini
paulcarnival@alice.it

folders

I do not understand were to put the file. Can some body help

Danks!!!