# Scripting CS & User Interaction

**URL:** <https://forum.kirupa.com/t/scripting-cs-user-interaction/177099>\
**Category:** design\
**Created:** [January 30, 2006, 7:43am UTC](https://forum.kirupa.com/t/scripting-cs-user-interaction/177099 "2006-01-30T07:43:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reidy](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@Reidy](https://forum.kirupa.com/u/Reidy)\
**Post date:** [January 30, 2006, 7:43am UTC](https://forum.kirupa.com/t/scripting-cs-user-interaction/177099/1 "2006-01-30T07:43:16Z")

</div>

Hi All. Does anyone out there know if it is possible to write a script that will:

1. Open a PSD
2. Open the Color Picker dialog
3. Allow the user to select a colour
4. On selecting OK from the color picker dialog, adjust a defined layer (say layer name “object base colour”)
5. And export slices along predefined boundaries.
6. Finally exit the file without saving.

What I’m trying to achieve is a somewhat automated theme creator, where each aspect of a UI uses a different colour (for the 3 standard states of a button lets say - up, down, over)  
Ideally, the script would repeat steps 2 - 4 three times.

Tall order I think, but thought I’d put it out there!!! I seem to remember reading that its not possible to use the :smirk2: or picker via script.

S.
