But now that I have some time again, I will deal with it again at the beginning of next year.
Unfortunately, your revised script didn't work for my purposes, because I don't want to create a new document, but want to apply the script to an existing document.
In addition, the script always shifts the graphics by the same value. I need to be able to determine the Y position of each graphic individually. That's why I used an array in my script.
Nevertheless, thanks again for your help.
