Bug When Overriding Master Page Items: Unexpected Shift of Master Page Objects
When overriding page items by script, those items are unexpectedly shifted and do not stay in the x/y position, they are on the master page. This differs widely from the UI-behaviour of InDesign.
There is a very good view and analysis of this bug from Marc Autret, which can be found here:
http://www.indiscripts.com/post/2014/06/indesign-scripting-forum-roundup-6#hd1sb2

-
Jeremy Bowman commented
I ran into this today. In my own case, overriding a master page text frame by script causes it to move horizontally 5.9mm — which happens to be the difference between A4 and Letter page sizes.
A script that creates a Letter-sized document and overrides a master page text frame works fine on my Windows PC, but on my Mac causes the overridden frame to shift 5.9mm to the left.
A script that creates an A4-sized document and overrides a master page text frame works fine on my Mac, but in Windows causes the overridden frame to shift 5.9mm to the right.
-
Tobias Wantzen commented
And Kasyan_Servetsky gave a nice workaround in 2017 here:
https://community.adobe.com/t5/indesign/problem-with-overriding-objects-on-custom-size-pages/m-p/10767271 -
Tobias Wantzen commented
Oh, I just found it:
https://community.adobe.com/t5/indesign/override-elements-by-script-problems/m-p/6072078Cheers, Tobias
-
Uwe Laubender commented
Ok. There is no file attached to my message.
NOW hopefully attached:
Override-elements-by-script-problems.zip.txtNOTE: I had to rename the zip file with suffix txt to get this loaded to my comment.
Regards,
Uwe Laubender
( ACP ) -
Uwe Laubender commented
Hi Tobias,
unfortunately the thread Marc Autret is linking to in his blog post does not work anymore.
The related discussion did not make it to the new forum. What a pain!Fortunately I saved the thread before the new forum was started.
I hope it gets through. Attached:
Override-elements-by-script-problems.zipRegards,
Uwe Laubender
( ACP )