background image behind a text script
Hi guys!
I was searching for a solution, to set a background image behind a text with a certain paragraph style. Unfortunately I did not find any yet.
So I thought maybe you can help me out with a script where you:
-assign a paragraph style (let's say "chapter_head")
-search for its encounter in the whole document.
-cut text of the found item and paste it with the same style(or a copy of the style) into a new textframe
-load a picture behind the textframe ("little-frame.ai")
-group, move and anchor it to the position where we cut the text out
-repeat with all found elements
Thanks in advance!