Hi Experts,
When I insert image using script then there is a refreshment problem.
In place of second image there place first image.
while if I debug this it place in correct order. But in Run case script not place image in order.
There is a refreshment problem After place First image it not refresh and have first image.
How solve this problem That i place image in proper order in Script Run mode.
#target indesign
var myDocument=app.activeDocument; //Active document have 10 spread with text frame
for(int i=0; i<10;i++)
{
var ImagePath="D:\Indesign\" + i + ".indd"; // There are 0.indd to 9.indd, 10 image in "D:\Indesign\"
var myTextFrame=myDocument.spreads.item(i).textFrames.firstItem();
myTextFrame.place(File(ImagePath)); // ImagePath is path of image
}
Thanks.