1 - setting color
here's the code I found to read from Numbers - and this may be overkill because I wasn't sure what exact problem I was having
a - integers not being read as such - thanks for the "as number" guideline for variable assignment
b - RGB colors as a list - example below based on
this
)
c- AppleScript colors are 16 bit - did not realize - How is color handled in AppleScript
tell application "Numbers" to tell the document "design-inputs" to tell the sheet "design-sheet" to tell table "design-table"
repeat with i from 2 to the count of cells of column "A" -- row 1 is a header so the counter starts at 2
set DesignName to formatted value of cell i of column "A"
set SwashText to formatted value of cell i of column "B"
set ListR to formatted value of cell i of column "C"
set ListG to formatted value of cell i of column "D"
set ListB to formatted value of cell i of column "E"
set TheFillColor to {} -- this has to be a list and the *257 is needed to convert to 16 bit RGB, which AppleScript requires
set beginning of TheFillColor to ListR * 257
set end of TheFillColor to ListG * 257
set end of TheFillColor to ListB * 257
2 - Rotation - thank you
when I searched the dictionary for "rotate" I only found document-level info and did not notice the *rotation* property for layers...but hoped it would exist. Glad it does.
The possibilities for my personal projects with Pixelmator Pro and AppleScript are endless. I am having fun experimenting.
Thank you for the support you have provided indirectly via all your previous posts and for your thoughtful response to this one!