[GastForen Programmierung/Entwicklung AppleScript

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste

etikettierten Felder werden falsch abgearbeitet (indesign)

TMA
Beiträge gesamt: 399

14. Nov 2017, 07:53
Bewertung:

gelesen: 2387

Beitrag als Lesezeichen
Hallo,
die 'color value' brauchst du eigentlich gar nicht.

Code
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


So sollte es gehen.

Gruß
TMA

(Dieser Beitrag wurde von TMA am 14. Nov 2017, 08:07 geändert)
Änderungsverlauf:
Beitrag geändert von TMA (User) am 14. Nov 2017, 08:07