clipping path script for selected images indesign
Hello everybody.
I'm looking for someone that might be able to help me with my inquiry – which might be as "easy" as adapting the following script.
I would need a script that automatically chooses the photoshop clipping mask for all SELECTED IMAGES IN INDESIGN.
The script I found comes pretty close but it automatically clips ALL images in a document which is almost what I want but it'd help me a lot if I would be able to choose the images I want to clip first and then run the script for only the selected images.
Is there anyone here that might be able to fix this Problem for me?
This is the script I found and tested:
var allImages = app.selection[0].allGraphics;
app.selection[0] = null;
l = allImages.length;
while(l--)
{
var currImage = allImages[l];
var pathName = currImage.clippingPath.photoshopPathNames[0];
if(pathName != undefined) currImage.clippingPath.appliedPathName = pathName;
}
THANKS SO MUCH
in advance my good JAVA-knowing-people ^^
