Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Clipping Paths in whol Document #98139
    Tom Tramita
    Member

    I found it out!
    I think the “pageItems.item was not defined totaly, so here is the working one!

    Script:

    main();
    function main(){

    var i, j, allGraphics,
    allGraphicsArrays = app.activeDocument.pages.everyItem().allGraphics;

    for (var i=0; i<allGraphicsArrays.length; i++) {
    var myObject = allGraphicsArrays[i];
    for (var j=0; j<myObject.length; j++) {
    try{

    myObject[j].clippingPath.appliedPathName = myObject[j].clippingPath.photoshopPathNames[0];
    myObject[j].clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH;

    }
    catch (myError) {
    alert(“Selected image does not have a Photoshop path applied”)
    }
    }}
    }

Viewing 1 post (of 1 total)