Answered
This topic has been closed for replies.
I have used this script for some years to format tables to a consistent size (I'm not sure where it came from, sorry).
It only does a single table at a time, but it is still pretty quick to do a whole lot as it just requires the table to be selected and then the script run.
You set the column widths in the 'var myWidths = [60, 10, 10, 10];' line of the script so it remembers the last figures you entered.
var myDoc = app.activeDocument;
var myWidths = [60, 10, 10, 10];
for(var T=0; T < myDoc.textFrames.length; T++){
for(var i=0; i < myDoc.textFrames[T].tables.length; i++){
for(var j=0; j < myWidths.length; j++){
myDoc.textFrames[T].tables[i].columns[j].width = myWidths[j];
}
}
}
alert("Table width updated successfully...");
Sign up
Already have an account? Login
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inSign in to Adobe Community
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

