Refreshment problem when place image.
hi experts,
when insert image using script there refreshment problem.
in place of second image there place first image.
while if debug place in correct order. in run case script not place image in order.
there refreshment problem after place first image not refresh , have first image.
how solve problem place image in proper order in script run mode.
#target indesign
var mydocument=app.activedocument; //active document have 10 spread text frame
for(int i=0; i<10;i++)
{
var imagepath="d:\indesign\" + + ".indd"; // there 0.indd 9.indd, 10 image in "d:\indesign\"
var mytextframe=mydocument.spreads.item(i).textframes.firstitem();
mytextframe.place(file(imagepath)); // imagepath path of image
}
thanks.
dear bill,
can please insert line.
#target indesign var mydocument=app.activedocument; //active document have 10 spread text frame for(int i=0; i<10;i++) { $.sleep(1000); var imagepath="d:\indesign\" + + ".indd"; // there 0.indd 9.indd, 10 image in "d:\indesign\" var mytextframe=mydocument.spreads.item(i).textframes.firstitem(); $.sleep(1000); mytextframe.place(file(imagepath)); // imagepath path of image }
may you.
thx,
csm_phil
More discussions in InDesign Scripting
adobe
Comments
Post a Comment