# Select Color Range OPTIONS

**URL:** <https://forums.creativeclouddeveloper.com/t/select-color-range-options/6197>\
**Category:** UXP Plugin API\
**Created:** [April 19, 2023, 11:03pm UTC](https://forums.creativeclouddeveloper.com/t/select-color-range-options/6197 "2023-04-19T23:03:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trasatti](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Trasatti](https://forums.creativeclouddeveloper.com/u/Trasatti)\
**Post date:** [April 19, 2023, 11:03pm UTC](https://forums.creativeclouddeveloper.com/t/select-color-range-options/6197/1 "2023-04-19T23:03:46Z")

</div>

Hi everybody, and thanks, as usual, for your support

I would like to know if there is a way to write javascript code that automatically select the" Image" option rather than the “Selections” option in the “Select Color Range” Dialog

See image

 ![Select Color range](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/f/f5d6043a57cd449fa963c903f8689e19e8dfff4d.jpeg)

I’ m able to open the Dialog with the following code but I’m not able to automatically select the ‘Image’ option

```auto
` const result = await batchPlay(
      [
         {
            _obj: "colorRange",
            fuzziness: 30,
            minimum: {
               _obj: "labColor",
               luminance: 73.35,
               a: 0,
               b: 0
            },
            maximum: {
               _obj: "labColor",
               luminance: 73.35,
               a: 0,
               b: 0
            },
            colorModel: 1,
            _options: {
               dialogOptions: "display"
            }
         }
      ],{ }
   );`

```
