In this script clip I don't see the need for the long "if then" but I'm at a loss on how to deal with "the choice" as a variable. Or maybe I need to be choosing a variable???
set blueGray to {"8000", "8000", "10000"}
set black to {"0", "0", "0"}
set white to {"65535", "65535", "65535"}
set red to {"65535", "0", "0"}
set manual to "Choose Color"
set theColorList to {"Black", "blueGray", "White", "Red", "Manual"}
tell application "GraphicConverter"
activate
set {theChoice} to choose from list theColorList default items "blueGray" with title "Color Selection"
display dialog theChoice
set theChoice to {theChoice}
set background color to theChoice
end tell
(* if theChoice = "bluegray" then
set theChoice to blueGray
else if theChoice = "Black" then
set theChoice to black
else if theChoice = "White" then
set theChoice to white
else if theChoice = "Red" then
set theChoice to red
else if theChoice = "Manual" then
set theChoice to choose color
else
set theChoice to blueGray -- default
end if *)
TIA,
Robert Poland - Fort Collins, CO