#target photoshop processPaths(); // Use clipping path else use path 1 even if its a work path function processPaths() { var i, count = app.activeDocument.pathItems.length; if ( count >= 2 ) { for ( i = 0; i < count; i++) { if ( app.activeDocument.pathItems.kind == PathKind.CLIPPINGPATH ) { app.activeDocument.pathItems.makeClippingPath(0.5); }; }; }; if ( count == 1 ) { if ( app.activeDocument.pathItems[0].kind == PathKind.WORKPATH ) { app.activeDocument.pathItems[0].name = "Clipping Path" }; app.activeDocument.pathItems[0].makeClippingPath(0.5); }; };
... View more