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

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

$
0
0

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


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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