Sorry guys,
i´m still lost. I´ve tried to apply an object style (with text wrapping attributes) now, but it gives me an error message, my object style "umfliessen" couldn´t be read. Maybe I have to refer it at a different position (not at line 22)?
tell application "Adobe InDesign CC 2015"
tell active document
tell layer "diagramm_balken_auto"
repeat with x from (count every text frame) to 1 by -1
tell text frame x
try
create outlines with delete original
end try
end tell
end repeat
end tell
tell layer "diagramm_balken_auto"
repeat with x from (count every polygon) to 1 by -1
tell polygon x
try
release compound path
end try
end tell
end repeat
end tell
tell layer "diagramm_balken_auto"
set objStyle to object style "umfliessen"
repeat with x from (count every item) to 1 by -1
tell item x
try
apply object style using objStyle
end try
end tell
end repeat
end tell
end tell
end tell
Also found the correct way of posting code. Sorry for the past entries!
I´m still hoping to get it done with some help of yours.
Thanks,
Markus
I found the solution!
tell application "Adobe InDesign CC 2015"
tell active document
tell layer "diagramm_balken_auto"
repeat with x from (count every text frame) to 1 by -1
tell text frame x
try
create outlines with delete original
end try
end tell
end repeat
end tell
tell layer "diagramm_balken_auto"
repeat with x from (count every polygon) to 1 by -1
tell polygon x
try
release compound path
end try
end tell
end repeat
end tell
tell layer "diagramm_balken_auto"
repeat with y from (count every spline item) to 1 by -1
tell spline item y
set text wrap mode of text wrap preferences to bounding box text wrap
end tell
end repeat
end tell
end tell
end tell