Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: cleaning up text frames

$
0
0

@Colin – at first glance, textWrapMode cannot be "None".

That's a string.

And you are asking for an enumeration.

 

The answer in your case would be:

 

TextWrapModes.NONE

 

So, if you select a text frame, you could ask:

 

var sel = app.selection[0];
var wrap = sel.textWrapPreferences.textWrapMode; if(wrap === TextWrapModes.NONE){    alert("textWrapMode: "+"\"NONE\"");    };

 

Did not further look into your code…

 

Uwe


Viewing all articles
Browse latest Browse all 37788

Trending Articles