Set InDesign table "Keep with next row" via a script


i new indesign javascript scripting. importing xml indesign tables , want set table cell "keep options" "keep next row" via javascript script.

the aim of script search paragraph style, (head1) in table , apply "keep next row" = "true" creating new page break.

 

any complete examples short explanation welcome.

here are. hope it's clear.

 

 // reset find/change dialog app.findtextpreferences = null; // set targeted paragraph style app.findtextpreferences.appliedparagraphstyle = app.activedocument.paragraphstyles.item ('head1'); // find occurrences of paragraph style found = app.activedocument.findtext(); // , go through found items (i = 0; < found.length; i++) {   // if found instance in cell   if (found[i].parent instanceof cell) {     // set cell's parent row keep next row     found[i].parent.parentrow.keepwithnextrow = true;   } } 

 

peter



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!