I have to build an Indd document starting from an indt and a series of indl elements. The indt contains 2 pages in spread form and a series of single page Masters. My script open the indt, apply the choosen Masters to the spread, insert the indl elements and save the document as indd. I have the strange problem during the indl insertion: if the last modification to the indt was on a master then the indl asset is placed on the Master, istead if you do a simple click on the indt spread and then save it, in that case the indl asset is placed in the right page. It seems that the indt save the "focus" of last modification.
I use :
placeAsset can accept only Document or Text and not Page.
The indt is continuously modified from operators , so I can't know where they do their "last click".
Thanks in advance
placeAsset can accept only Document or Text and not Page
Perhaps you can do a move command right after placing?
I've tried to move the asset before but it didn't work. Now I retry and seems work!
Probably I was making a stupid mistake somewhere.
Thanks for help