Reproduce "File > Place" in Illustrator via scripting
The only way that I've found to place an image via scripting in Illustrator is this:
var doc = app.activeDocument;
var placedItem = doc.placedItems.add();
placedItem.file = new File("image.jpg");This though is different from the way you would trigger the "File > Place" command in Illustrator (or even InDesign), because you don't get to use the "gun placer" tool and decide where to place the image.
Is there a way to trigger the specific command in IL via JS scripting?
InDesign's has app.activeDocument.place() but I couldn't find anything similar in IL.
