Is there a way to get the current foreground and background colors? (default no)

As above. Any ideas? I can not even find a way to get the listener from script to solve this one.

Something like that?

var bkColour = app.backgroundColor;

var fgColour = app.foregroundColor;

Alert ("background color =" + bkColour.rgb.hexValue);

Alert ("foreground color =" + fgColour.rgb.hexValue);

Tags: Photoshop

Similar Questions

Maybe you are looking for