DTP


 
Lively discussions on the graphic arts and publishing ā€” in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Print Production & Automation

Reply
 
Thread Tools Display Modes
Old 05-22-2006, 04:35 AM   #1
Dave Saunders
Member
 
Dave Saunders's Avatar
 
Join Date: Jan 2005
Posts: 103
Default InDesign TableTweakers

Finally thought to look up my welcome e-mail and so found my way back in here!

If anyone is involved in getting the size of InDesign CS2 tables (or columns within tables) just right, this set of scripts will help. In effect, I have packaged up some scripts that I wrote during the recent work I did on two major publications (a 800+ page Culinary Arts text book along with ancillaries and a 850+ page biochemical catalog). Both involved a lot of table work, ranging from relatively small ones like the one I used to illustrate the user guides (such as they are) to 20-page monsters.

The package can be downloaded from:

http://pdsassoc.com/blogscripts/2006...kerScripts.zip

tableColWidthSqueezeL.jsx
tableColWidthSqueezeR.jsx

Select two or more columns in your table and these scripts will adjust the widths of the left and right columns of your selection, transferring one unit of your horizontal ruler measurement units from one side to the other. SqueezeL squeezes the left column of your selection in favor of the right column. SqueezeR does the opposite. Use Picas, Centimeters, or even Inches for large adjustments. Use millimeters or points for small ones.

tableFitWidthToColumn.jsx

Adjusts the width of your table to match the live text space of the first column of the first frame that holds the table. The space is either added to or subtracted from all the columns of the table proportionally.

tableSetWidth.jsx

Offers you a dialog box with a measurement edit field so you can set an exact width for your table. Thanks to the magic of measurement edit fields, you can use any of the measurement units that InDesign supports to express your desired width no matter which units might be in action at the time you run the script. As above, the space is either added to or subtracted from all the columns of the table proportionally.

tableVerticalJustification.jsx

Adds space vertically to your table so it aligns perfectly with the bottom of the text area in all the text frames it occupies. Note: only works well with single-column frames; will be defeated by having fixed height rows in your table.

Enjoy!

Dave
Dave Saunders is offline   Reply With Quote
Old 05-22-2006, 10:28 AM   #2
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,189
Default

Quote:
Originally Posted by Dave Saunders
Finally thought to look up my welcome e-mail and so found my way back in here!
Very glad you did!

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
Old 05-22-2006, 11:26 AM   #3
Dave Saunders
Member
 
Dave Saunders's Avatar
 
Join Date: Jan 2005
Posts: 103
Default

Hi KT,

I was chatting with Shane at Secaucus the other day and it was then that it occurred to me that I really ought to do something more than give up at the gate!

Shane and Ray put on a good show for those AppleScripters. It was quite inspirational. Maybe there are people out there who want to learn scripting and maybe some of them are actually interested in JavaScript.

Dave
Dave Saunders is offline   Reply With Quote
Old 05-22-2006, 12:59 PM   #4
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,189
Default

Quote:
Originally Posted by Dave Saunders
I was chatting with Shane at Secaucus the other day and it was then that it occurred to me that I really ought to do something more than give up at the gate!
Perhaps we should send e-mail reminders occasionally ā€” Iā€™d hate to think that people are staying away because they have lost their way back!

Quote:
Shane and Ray put on a good show for those AppleScripters. It was quite inspirational. Maybe there are people out there who want to learn scripting and maybe some of them are actually interested in JavaScript.
You would think so. But people are so far-flung that it would have to be an online college sort of class, I fear.

Or maybe they should think about that.

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
Old 05-23-2006, 12:14 AM   #5
annc
Sysop
 
annc's Avatar
 
Join Date: Oct 2004
Location: Subtropical Queensland, Australia, between the mountains and the Coral Sea
Posts: 4,434
Default

That sounds just wonderful, Dave! Does it by any chance work with ID CS? I haven't upgraded, and am reluctant to do so because I have several of the suite applications (not including ID) on the PC and really want to keep them all in synch.

P.S. It is great to see you back here. Please don't lose the welcome message.

   
__________________
annc is offline   Reply With Quote
Old 05-23-2006, 03:47 AM   #6
Dave Saunders
Member
 
Dave Saunders's Avatar
 
Join Date: Jan 2005
Posts: 103
Default

Ann,

You'll need to change the ".jsx" extensions to ".js" -- I believe they'll work, but then, the non-rectangular selection issue came as a complete surprise to me with CS2, so who knows?

I decided for now to just release CS2 versions to avoid the extra testing and documenting, but if enough CS users speak-up, I'll revisit that decision.

Dave
Dave Saunders is offline   Reply With Quote
Old 05-23-2006, 11:30 AM   #7
annc
Sysop
 
annc's Avatar
 
Join Date: Oct 2004
Location: Subtropical Queensland, Australia, between the mountains and the Coral Sea
Posts: 4,434
Default

Quote:
Originally Posted by Dave Saunders
Ann,

You'll need to change the ".jsx" extensions to ".js" -- I believe they'll work, but then, the non-rectangular selection issue came as a complete surprise to me with CS2, so who knows?

I decided for now to just release CS2 versions to avoid the extra testing and documenting, but if enough CS users speak-up, I'll revisit that decision.
That's fine, Dave. I wouldn't expect you to go through a lot of testing etc. for those few of us who haven't yet upgraded. I was really just hoping it would work with CS as is.

   
__________________
annc is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:00 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004ā€“2014 Desktop Publishing Forum and its members.