Thanks for your reply Dan,
If you copy paste and run following code, and click button which will show color picker on After Effects (Mac).
and when you close the picker, it will also auto close the dialog.
Thanks
testColorPicker();
function testColorPicker(){
var myWindow = new Window("dialog", "Test Color", undefined, {
resizeable: true
});
myWindow.add("button", undefined, "show picker").onClick = function(){
var color_decimal = $.colorPicker();
};
myWindow.show();
}