Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
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”)
}
}}
}
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.