@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