I'm building script which adds new item into product catalogue based on the
code from the prompt() dialog.
When I run :
The new rectangle is created on the first page of the document.
is better, but it always places the rectangle on the first page of the
spread, which is not very helpful for the user who is zoomed into the
opposite corner of the spread
does exactly what I want but is awfully slow, when I deal with complex
Is there a way to position page items in relation to the screen coordinates?
Do exactly what you suggested, but make sure to do it only on the simple
object like you did. Note the bounds of the object, and remove it. You
then create your complex one using the bounds of the pasted object as a