Copy link to clipboard
Copied
This works:
set layer color of layer 1 to light blue
This doesn't:
set listOfColors to {"light blue", "green", "blue"}
set layer colour of layer 1 to item 1 of listOfColors
I can see that item 1 is text, and light blue is not text - is there some way to coerce it? Maybe I'm just being lazy but if color names exist, I'd rather use them.
Thanks for any help,
Emma
Those UI colours are app constants so NO double quotes… Also NO u in color on last line…
tell application "Adobe InDesign CS5"
tell the active document
set layer color of layer 1 to light blue
set listOfColors to {light blue, green, blue}
set layer color of layer 1 to item 2 of listOfColors
end tell
end tell
Copy link to clipboard
Copied
Those UI colours are app constants so NO double quotes… Also NO u in color on last line…
tell application "Adobe InDesign CS5"
tell the active document
set layer color of layer 1 to light blue
set listOfColors to {light blue, green, blue}
set layer color of layer 1 to item 2 of listOfColors
end tell
end tell
Copy link to clipboard
Copied
How stupid am I??? Doh! Thanks.