My problem is like this :
I want place image in a text box
File(menu)-->place....-->(Dialog open then Select Image file then click on open)->then image is attach with cursor. (I do not click on .indd open screen).
Now I run the script from ExtendedTool Kit
#target indesign
var myDocument=app.activeDocument;
var myTextFrame=myDocument.spreads.item(0).textFrames.firstItem();
$.sleep(2000);
myTextFrame.place(File("/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/temp.jpg")) ;
$.sleep(2000);
var graphic=myTextFrame.allGraphics[0];
graphic.select(SelectionOptions.REPLACE_WITH);
graphic.geometricBounds =["-47.853527","-157.370275","1231.018230","709.576702"];
When this script run then it place the image which I am select from File(menu)-->place....-->(Dialog open then Select Image file then click on open).
Not from the path "/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/temp.jpg"
This is the problem to place image. So there is image duplicasy and some image missing.
Is there is solution of this problem ?
How remove image which is already attach with cursor ?
Thanks.