How to download an image from url to use in ILLUSTRATOR scripting (ExtendScript Toolkit)

Viewed 84

To place an image into Adobe Illustrator using the ExtendScript Toolkit is well documented:

var placedItem = doc.placedItems.add();
placedItem.file = new File("~/Desktop/xxx.jpg");
placedItem.position = [100,370];

Does anyone know how to place an image from URL into Adobe Illustrator. For example: https://www.bcgen.com/demo/IDAutomationStreamingDataMatrix.aspx?D=TEST123&PT=T&MODE=3&X=1&LM=1

In Photoshop one can use app.system(curl -o .....) as explanined here (How to download an image from url to use in Photoshop scripting (ExtendScript Toolkit)). But in Illustrator app.system() seems not to be available. Maybe do.script() is the right way to go but did not figure out how so far....

0 Answers
Related