Skip to main content
Participating Frequently
May 28, 2008
Question

setting hyphenateAcrossColumns to false for a textFrame

  • May 28, 2008
  • 13 replies
  • 758 views
Hi Everyone,

I only started writing scripts for InDesign yesterday and so I am still getting my head around everything.

I have created a textFrame like so:

var myTextFrame = myDocument.pages.item(0).textFrames.add();

and now, just like when using the UI in InDesign where you can go to the 'Paragraph' panel and uncheck the 'hyphenate' box. I want to do this in the script for this textFrame.

Thanks in advanced for your help.
This topic has been closed for replies.

13 replies

Inspiring
May 28, 2008
The online help files are a good place to start:

About character and paragraph styles

Dave
Participating Frequently
May 28, 2008
Thanks Dave. I'll start reading up on paragraph styles then. Can you direct me to any material that may help? Any tips?
Inspiring
May 28, 2008
While you can do that in the UI, what you're actually doing is setting the property for the text in the text frame (or for the one and only insertion point if it's a new empty text frame).

In a script you would write:

myTextFrame.texts[0].hyphenateAcrossColumns = false;

But this is not the way to manage this property. You should be using Paragraph Styles that have this setting the way you want it.

Dave