I have a grouped item (bunch of text and graphics which form a monogram) named newgroup and want to insert them into a body of text. I can do this with copy/paste with the target being a selecte InsertionPoint, and it works like a charm. My issue is, I need to move the code to Indesign Server, and there is no copy and paste.
I've tried for 2 days using the duplicate or move to get the grouped item into my body text without any luck. I have succeeded in making a duplicate of the grouped item (ends up floating on the document somewhere), but cannot get it inserted into an InsertionPoint.
Any help would be appreciated.
Use the VB equivalent of move? (http://jongware.mit.edu/idcsjs5.5/pc_Group.html#move)
If you got the copy/paste working, this ought to do the same in one single command.
Ah, sorry -- brain fart. This doesn't work with anchored objects.
Message was edited by: [Jongware]
I don't see a good way to do this. InsertionPoint.rectangles.add() works, as does InsertionPoint.textFrames.add(), but InsertionPoint.groups.add() is missing! It looks like InsertionPoint.placeAsset() would work, or InsertionPoint.place() maybe with a snippet, but both of those strike me as clunky workarounds. I can't shake the feeling I'm missing something here...
Jeff