Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save milligramme/3e7e2cbb3a6b0798dab1f915e9bc6a0c to your computer and use it in GitHub Desktop.
Save milligramme/3e7e2cbb3a6b0798dab1f915e9bc6a0c to your computer and use it in GitHub Desktop.
//@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