Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 72601

Re: Batch remove paths in PSD file

$
0
0

I put together a little script that I'm including in most export action I run. It suppresses any error message dialogs and removes any paths (no matter the naming or amount of paths), alpha channels, layer comps & color samples. However removing guides are done as a separate step in the action.

 

Create the script and then record an action where you launch the script on a open document. You must have a path in the image when you record it, otherwise the script won't run and the script will not be recorded to the action. Then call the action with "Save & Close" from Automate -> Batch, should do it.

 

 

 

 

#target photoshop

var theImage = app.activeDocument;

 

// supress dialog windows

displayDialogs = DialogModes.NO

 

// delete paths

theImage.pathItems.removeAll();

 

// delete alphas

theImage.channels.removeAll();

 

// delete layercomps

theImage.layerComps.removeAll();

 

// delete color samplers

theImage.colorSamplers.removeAll();


Viewing all articles
Browse latest Browse all 72601

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>