Skip to main content
Participating Frequently
September 13, 2010
Answered

Placing an indl working with an indt

  • September 13, 2010
  • 1 reply
  • 590 views

Hi,

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 :

indl_asset=asset.placeAsset(theDocument)[0];

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".

I'm working with Indesign Server CS4 and Javascript.

Thanks in advance

This topic has been closed for replies.
Correct answer Jongware
placeAsset can accept only Document or Text and not Page

Weird

Perhaps you can do a move command right after placing?

1 reply

Jongware
Community Expert
JongwareCommunity ExpertCorrect answer
Community Expert
September 13, 2010
placeAsset can accept only Document or Text and not Page

Weird

Perhaps you can do a move command right after placing?

Participating Frequently
September 13, 2010

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