Thanks Mark for reply
First I want to tell you my problem.
First I put my image .jpg in " C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/InDtemp/ " folder and give name it temp.jpg. Then place in .indd document using script. Then delete this image.
I repeat this process for all image but some time in place of second image, first image is place
while in " C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/InDtemp/ " folder the first image is not present. How solve this problem ?
I try :
#target indesign
var myDocument=app.activeDocument;
var myPlaceGun =myDocument.placeGuns();
myPlaceGun.abortPlaceGun();
var myTextFrame=myDocument.spreads.item(0).textFrames.firstItem();
myTextFrame.place(File("/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/InDtemp/tem p.jpg"));
but it place some time the above image which is place before this "C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/InDtemp/temp.jpg" image
Thanks