Script to change selected layer to one of the drop down colors within layers pallete
Hello!
I was wondering if anyone knows of a script that would allow me to change selected layers (either single or mulitple selection) to "Light Blue" or any colors within the drop down selection? (see attached screenshot)
I've found the following but it changes all the layers and it's RGB color.
-----
tell application "Adobe Illustrator"
set current_Layer in current document
display dialog "In current document there are " & layersCounter & " layers." & "Recolor layers label?"
repeat until (layersCounter = 0)
set color of layer layersCounter in current document to {Light Blue}
set layersCounter to layersCounter - 1
end repeat
end tell
-----

I don't know how to script so any help is greatly appreciated. Thank you in advance!
John
