Hi Experts
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. I want to place image from path "/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/temp.jpg"
So before place image using above script I want to clear the attach image with cursor using script.
Because I am placing multiple image in my file using script So in place of my second image first image is place and so there is repetation of first image and second image is miss.
Is there is solution of this problem ?
How remove image which is already attach with cursor using script?
Thanks.