You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
(function (thisObj) { var counter = 0; var res = confirm( "This script removes all content from the layer named \"Preise\" use it at your own risk", true); if (!res) { return; } else { var doc; try { doc = app.activeDocument; } catch (e) { alert("You have no document"); } var layers = doc.layers; for (var l = 0; l < layers.length; l++) { layer = layers[l]; if (layer.name == 'Preise') { if (layer.locked === true) { layer.locked = false; } for (var i = layer.allPageItems.length - 1; i >= 0; i--) { var item = layer.allPageItems[i]; if (item instanceof TextFrame) { //this should be a price label item.remove(); counter++; } } } } alert("Removed " + counter + " items"); }})(this);