Skip to content

Instantly share code, notes, and snippets.

@MarshySwamp
Created November 24, 2019 00:43
Show Gist options
  • Save MarshySwamp/20602d3c87774239e1a6163efde2829f to your computer and use it in GitHub Desktop.
Save MarshySwamp/20602d3c87774239e1a6163efde2829f to your computer and use it in GitHub Desktop.
Code Snippet: Bulk removal of common Photoshop document items
// remove all paths
app.activeDocument.pathItems.removeAll();
// remove all alphas
app.activeDocument.channels.removeAll();
// remove all layercomps
app.activeDocument.layerComps.removeAll();
// remove all color samplers
app.activeDocument.colorSamplers.removeAll();
// remove all guides
app.activeDocument.guides.removeAll();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment