UXP - Get user adjustments from displayed dialog?

Oh, maybe I should have explained those 2 keys…You can add a title for the color picker (context) and the color to start with:

const openPicker = {
  _target: { _ref: "application" },
  _obj: "showColorPicker",
  context: "Some title for the color picker...",
  color: {
    _obj: 'RGBColor',
    red: 0,
    green: 0,
    blue: 0,
  },
};
const res = await photoshop.action.batchPlay([openPicker], {})
const rgbFloat = res[0].RGBFloatColor
3 Likes