Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Refreshment problem when place image.

$
0
0

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.


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>