🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #167

Re: how to solve the Embed Color Profile problem...

#167
From: christoph_pfaffenbichler
Date: Thu, 05 Mar 2009 06:32
21 lines
1603 bytes
I used another profile�s name, because I don�t have the old one installed anymore, You�ll have to be exact about the letters though.
And from a prepress-standpoint I�d like to point out that removing the profile as opposed to �Convert to Profile� seems a peculiar practice, though of course Your reasons for doing so may be valid indeed.
You could try:
var myDocument = app.activeDocument;
if (myDocument.colorProfileName == "U.S. Web Coated (SWOP) v2") {
	// =======================================================
	var idassignProfile = stringIDToTypeID( "assignProfile" );
		var desc2 = new ActionDescriptor();
		var idnull = charIDToTypeID( "null" );
			var ref1 = new ActionReference();
			var idDcmn = charIDToTypeID( "Dcmn" );
			var idOrdn = charIDToTypeID( "Ordn" );
			var idTrgt = charIDToTypeID( "Trgt" );
			ref1.putEnumerated( idDcmn, idOrdn, idTrgt );
		desc2.putReference( idnull, ref1 );
		var idmanage = stringIDToTypeID( "manage" );
		desc2.putBoolean( idmanage, false );
	executeAction( idassignProfile, desc2, DialogModes.NO );
	}
else {
	};
Technical Details
Message-ID: <59b817a7.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b817a7.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
From: christoph_pfaffenbichler@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: how to solve the Embed Color Profile problem...
Message-ID: <59b817a7.2@webcrossing.la2eafNXanI>
Date: Wed, 4 Mar 2009 22:32:06 -0800
References: <59b817a7.-1@webcrossing.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit