Created
November 9, 2016 00:34
-
-
Save milligramme/3e7e2cbb3a6b0798dab1f915e9bc6a0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@target "indesign" | |
$.writeln(app.version); | |
var doc = app.documents.add(); | |
app.scriptPreferences.measurementUnit = MeasurementUnits.POINTS; | |
var tf = doc.textFrames.add({geometricBounds:[10,10,50,100]}); | |
var tbl = tf.tables.add({bodyRowCount:4, columnCount:4}); | |
var cr= tbl.rows[0]; | |
r.autoGrow = false; | |
var i = 4; | |
while (i-=0.0001) { | |
try { | |
r.height = i; | |
} | |
catch(x_x){ | |
$.writeln(i); | |
$.writeln(x_x); | |
break; | |
} | |
if(i < 0){ | |
break; | |
} | |
}; | |
app.scriptPreferences.measurementUnit = AutoEnum.AUTO_VALUE | |
// possible to create zer0 height cell | |
/* | |
7.0.4.553 | |
*/ | |
/* | |
9.3.0.106 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment