Create a gist now

Instantly share code, notes, and snippets.

Convert All Photoshop TextItem to Shape
var layers = app.activeDocument.layers;
convertToShapeLayer(layers);
function convertToShapeLayer(layers) {
for(var i=0,layersLength=layers.length; i<layersLength; i++) {
var layer = layers[i];
if(layer.typename == "LayerSet") {
convertToShapeLayer(layer.layers);
} else {
if(layer.kind == LayerKind.TEXT) {
layer.textItem.convertToShape();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment