How remove image which is attach with cursor when place image ?


hi experts

 

my problem :

i want place image in text box

file(menu)-->place....-->(dialog open select image file click on open)->then image attach  cursor. (i not click on .indd open screen).

now run script 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 script run place image select file(menu)-->place....-->(dialog open select image file click on open).

 

not path "/c/docume~1/admini~1/locals~1/temp/temp.jpg"

 

this problem place image. want place image path "/c/docume~1/admini~1/locals~1/temp/temp.jpg"

 

so before place image using above script want clear attach image cursor using script.

because placing multiple image in file using script in place of second image first image place , there repetation of first image , second image miss.

 

 

is there solution of problem ?

how remove image attach cursor  using script?

 

thanks.

im not @ sure want here… if cursor has image in place gun…?

 

abortplacegun() // may looking i've never scripted before…



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account