I figured out that for normal alpha channels, we can use ActionDescriptor to get either HSB/RGB or CMYK value of the channel color.
However, for Spot color it seems we can only get the color name and the book name. Is there anyway that we can call any Photoshop API to extract the CMYK value or LAB value or RGB value of a Spot color in a Photoshop color book?
The input information we have is the name of the spot color, and the name of the inkbook.
I read the "Color services Procs" & "ColorSpace Suite", there seems no clue where I can get the color information of a spot channel.
See follow dump from Getter.log:
############
// Unicode String as UTF8: SpotRed1
error = sPSActionDescriptor->PutString(desc0x8a8, keyName, "SpotRed1");
if (error) goto returnError;
// Move this to the top of the routine!
PIActionDescriptor desc0x8b0 = NULL;
error = sPSActionDescriptor->Make(&desc0x8b0);
if (error) goto returnError;
// Unicode String as UTF8: PANTONE® process coated
error = sPSActionDescriptor->PutString(desc0x8b0, keyBook, "PANTONE® process coated");
if (error) goto returnError;
// Unicode String as UTF8: PANTONE DS 89-5 C
error = sPSActionDescriptor->PutString(desc0x8b0, keyName, "PANTONE DS 89-5 C");
if (error) goto returnError;
############
Thanks!