tell application "Adobe InDesign CC 2017" tell active document set logoSwatches to swatches 5 thru -1 repeat with i from 1 to count logoSwatches set temp to (every item of all page items whose label is ("druckfarbe" & i as string)) set temp1 to (every item of all page items whose label is ("f" & i as string)) repeat with y in temp if "weiss" is in name of item i of logoSwatches then set fill color of item 1 of temp1 to item i of logoSwatches set color value of stroke color of item 1 of temp1 to {0.0, 0.0, 0.0, 0.0} set text of y to name of item i of logoSwatches --set fill color of paragraphs of y to item i of logoSwatches else set fill color of item 1 of temp1 to item i of logoSwatches set text of y to name of item i of logoSwatches --set fill color of paragraphs of y to item i of logoSwatches end if tell item 1 of temp to fit given frame to content end repeat end repeat end tell end tell
| 24.11.2023