InDesign Dialog "Choose Swatch" from list

I’ve read the CS5 documentation (the guide and the reference), so creating a user interace dialog box is pretty straight forward. Here’s what the documentation doesn’t cover. Unfortunately I need to have the user be able to pick a swatch from a list of swatches, but I also need the user to be able to see the color they are going to pick (not just the swatch name) --so the list should look like the document’s swatches panel. Is there an easy way to do this (can the user select a swatch from the swatches panel in a dialog?). And if not, are there any examples or documentation to show how this is done?

Thank you.

(P.S. I’m not able to use anything but Applescript).

Browser: Firefox 3.6.6
Operating System: Mac OS X (10.6)

Hi Paeon,

best I can think of is this!

tell application "Adobe InDesign CS5"
	set swatch_list to name of every swatch
	set visible of panel "Swatches" to true
	set the_swatch to choose from list swatch_list
end tell

This will allow a user to choose from a list but show the Swathes panel at they same time as a kind of cross reference.


Thank you!