🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #169

Re: Please help -- CS3 applescript -- would gladly pay $100.

#169
From: Mark_Larsen
Date: Thu, 05 Mar 2009 10:28
34 lines
1686 bytes
as X has already suggested create a set of your own colo(u)r settings and switch to this. You can script this very easily as you just need the name string of whatever you've called it.

tell application "Adobe Photoshop CS2"
	activate
	-- Record current settings
	set User_CS to color settings
	-- Apply your settings
	set color settings to "Marks Test"
end tell
--
(*do your processing here*)
--
tell application "Adobe Photoshop CS2"
	-- Put back settings
	set color settings to User_CS
end tell
--
(*or apply/convert profiles*)
--
tell application "Adobe Photoshop CS2"
	activate
	tell document 1
		-- Apply a colour profile
		if color profile name ≠ "Europe ISO Coated FOGRA27" then
			set color profile name to "Europe ISO Coated FOGRA27"
		end if
		-- Convert to colour profile
		if color profile name ≠ "U.S. Sheetfed Coated v2" then
			convert to profile �
				"U.S. Sheetfed Coated v2" intent absolute colorimetric �
				with dithering without blackpoint compensation
		end if
	end tell
end tell
Technical Details
Message-ID: <59b690c8.14@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b690c8.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,c38f2162f07935f5
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
From: Mark_Larsen@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: Please help -- CS3 applescript -- would gladly pay $100.
Message-ID: <59b690c8.14@webcrossing.la2eafNXanI>
Date: Thu, 5 Mar 2009 02:28:12 -0800
References: <59b690c8.-1@webcrossing.la2eafNXanI>
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit