-- Copyright 2002-2008.  Adobe Systems, Incorporated.  All rights reserved.
-- Demonstrates how to convert a CMYK color to an RGB color,
-- how to convert the foreground color to an RGB color,
-- and how to convert an RGB color to its hexadecimal equivalent.

tell application "Adobe Photoshop CS4"
	activate
	
	set myRGBColor to convert color {class:CMYK color, cyan:0, magenta:0, yellow:0, black:100} to RGB
	
	set eqColors to equal colors {class:RGB color, red:10, green:40, blue:50} with convert color foreground color to RGB
	
	set myHexColor to convert color {class:RGB color, red:255, green:0, blue:0} to RGB Hex
	
end tell
