Hi Philip,
Thank you again for that quick response and the time you spent to write me.
The solution you propose indeed solves the visual problem, but it does not solve the problem with the manual and programmatically creation of a rectangle (or any other pageItem).
If you select the rectangle in Document A and ask for the app.selection[0].transformValuesOf(CoordinateSpaces.PASTEBOARD_COORDINATES)[0].matrixValues you’ll get 1,0,0,1,0,0.
If you do the same for the rectangle that was created with a script in Document B you’ll get 1,0,0,1,5,-391
This is what I want to change when I’m creating the object with a script.
I see there is a ‘transform’ method and now I’m playing with this in case I can change that value to 1,0,0,1,0,0 before I set the other properties.
If I find out how to do that, the IDMLs of those two documents will have the same properties for these objects and my system will work properly.
Now the IDMLs look like this: rectangles
In case you think of something please reply.
Thanks again,
Jim