I have ExtendScript code that places a graphic inline in a text frame. It does this by placing the graphic on the page, selecting it, cutting it, then selecting some placeholder text in the text frame, and pasting. This replaces the placeholder text with the graphic.
This might not be the most elegant way to do this, but it's been working fine.
Problem: now I need to move this code to InDesign Server. InDesign Server lacks select, copy, and paste methods (since there's no UI).
I've been trying to find an alternate way of doing this without success. I don't have the option to import the text stream as XML.
I forgot to mention: in many cases, the "graphic" that must be placed is a snippet. NOW is it complicated enough for you?