🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #170

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

#170
From: Mark_Larsen
Date: Thu, 05 Mar 2009 10:45
13 lines
1019 bytes
Can you not just test for a profile name string in a try block on success set the profile kind to none on failure it was not managed? Sorry don't know how the syntax for this in JavaScript.

tell application "Adobe Photoshop CS2"
	activate
	tell document 1
		try
			set Doc_Profile to color profile name
			set color profile kind to none
		on error
			display dialog "Not managed"
		end try
	end tell
end tell
Technical Details
Message-ID: <59b817a7.4@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-Thread: f5839,1dd802ed64c45888
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Mark_Larsen@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.4@webcrossing.la2eafNXanI>
Date: Thu, 5 Mar 2009 02:45:40 -0800
References: <59b817a7.-1@webcrossing.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit