Scripting CS & User Interaction

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.