🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #455

Re: strip exif

#455
From: BinaryFX
Date: Wed, 04 Feb 2009 05:27
28 lines
1141 bytes
Remove Alpha:
______________

// remove every but the composite channels,

if (documents.length > 0)
{
	docRef = activeDocument;

	for (var i = docRef.channels.length-1 ; i >=0 ; i--) {
	if (docRef.channels[i].kind != ChannelType.COMPONENT)	{
		$.writeln(docRef.channels[i].kind);	
		docRef.channels[i].remove(); }
	}

}
else
{
	alert("There must be at least one open document to run this script!");
}

______________

Not my code, I can't find the file/link in the Exchange anymore.

Hope this helps,

Stephen Marsh
Technical Details
Message-ID: <59b7b6fd.9@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7b6fd.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,395b07c7068cc51
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: BinaryFX <binaryfx@ozemail.com.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: strip exif
Message-ID: <59b7b6fd.9@webcrossing.la2eafNXanI>
Date: Tue, 3 Feb 2009 21:27:36 -0800
References: <59b7b6fd.-1@webcrossing.la2eafNXanI>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit